Last active
June 9, 2021 06:09
-
-
Save akellbl4/07a58167850eb9ec50f32a14b139cd2e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Redirect | |
export function getServerSideProps() { | |
return { | |
redirect: { | |
destination: '/', | |
permanent: false, | |
}, | |
} | |
} | |
// Page 404 | |
export function getServerSideProps() { | |
return { | |
notFound: true, | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment