Dynamic protected routes in pure NextJS app.
How to setup dynamic protected routes in pure NextJS app?
If I use this async function and to protect page, I have to code it in every single pages which I want to protect.
export async function getServerSideProps(context) {
return {
props: {},
}
}
Add comment