Merge pull request #2 from emrysal/main
When navigating to a calendso user that does not exist, return notFound.pull/3/head
commit
781060e5c6
|
@ -57,6 +57,12 @@ export async function getServerSideProps(context) {
|
|||
}
|
||||
});
|
||||
|
||||
if (!user) {
|
||||
return {
|
||||
notFound: true,
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
props: {
|
||||
user
|
||||
|
|
Loading…
Reference in New Issue