minor fixes, new next.js behavior

master
qwertyforce 2023-05-30 17:18:45 +03:00
parent bea9b788f1
commit d28dae8bb0
5 changed files with 5 additions and 5 deletions

View File

@ -153,7 +153,7 @@ function split(str: string) {
arr[i] = ")";
}
}
console.log(arr);
// console.log(arr);
return arr;
}

View File

@ -54,6 +54,6 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
}
}
return {
props: { notFound: true }
notFound: true
}
}

View File

@ -267,6 +267,6 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
}
}
return {
props: { notFound: true },
notFound: true
}
}

View File

@ -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

View File

@ -41,6 +41,6 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
}
return {
props: { notFound: true }
notFound: true
}
}