minor fixes, new next.js behavior
parent
bea9b788f1
commit
d28dae8bb0
|
@ -153,7 +153,7 @@ function split(str: string) {
|
|||
arr[i] = ")";
|
||||
}
|
||||
}
|
||||
console.log(arr);
|
||||
// console.log(arr);
|
||||
return arr;
|
||||
}
|
||||
|
||||
|
|
|
@ -54,6 +54,6 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
|
|||
}
|
||||
}
|
||||
return {
|
||||
props: { notFound: true }
|
||||
notFound: true
|
||||
}
|
||||
}
|
||||
|
|
|
@ -267,6 +267,6 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
|
|||
}
|
||||
}
|
||||
return {
|
||||
props: { notFound: true },
|
||||
notFound: true
|
||||
}
|
||||
}
|
||||
|
|
|
@ -71,7 +71,7 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
|
|||
}
|
||||
|
||||
const photos: PhotoInterface[] = []
|
||||
console.log([context.query.q, context.query.semantic])
|
||||
// console.log([context.query.q, context.query.semantic])
|
||||
if (context.query.semantic === "1") {
|
||||
if (context.query.q.length > 100) {
|
||||
return ERROR
|
||||
|
|
|
@ -41,6 +41,6 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
|
|||
|
||||
}
|
||||
return {
|
||||
props: { notFound: true }
|
||||
notFound: true
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue