When navigating to a calendso user that does not exist, return notFound.
parent
2c4b5c2846
commit
197ee86c32
|
@ -57,6 +57,12 @@ export async function getServerSideProps(context) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (!user) {
|
||||||
|
return {
|
||||||
|
notFound: true,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
props: {
|
props: {
|
||||||
user
|
user
|
||||||
|
|
Loading…
Reference in New Issue