Dynamic protected routes in pure NextJS app.

Forums Next.JsDynamic protected routes in pure NextJS app.
Staff asked 8 months ago

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: {},
  }
}

Subscribe

Select Categories