When navigating to a calendso user that does not exist, return notFound.
This commit is contained in:
1 parent
2c4b5c2846
commit
197ee86c32
1 file changed
+6
@@ -57,6 +57,12 @@ export async function getServerSideProps(context) {
|
||||
}
|
||||
});
|
||||
|
||||
if (!user) {
|
||||
return {
|
||||
notFound: true,
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
props: {
|
||||
user
|
||||
|
||||
Reference in new issue
Block a user