When navigating to a calendso user that does not exist, return notFound.

pull/2/head
Alex van Andel 2021-04-08 15:51:13 +00:00
parent 2c4b5c2846
commit 197ee86c32
1 changed files with 6 additions and 0 deletions

View File

@ -57,6 +57,12 @@ export async function getServerSideProps(context) {
}
});
if (!user) {
return {
notFound: true,
}
}
return {
props: {
user