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

This commit is contained in:
Alex van Andel 2021-04-08 15:51:13 +00:00
parent 2c4b5c2846
commit 197ee86c32

View file

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