Next.js Discord

Discord Forum

Route Authentication

Unanswered
American Shorthair posted this in #help-forum
Open in Discord
American ShorthairOP
Greetings.

I want to be able to conditionally block pages from being rendered/accessed based on user data (which I already have). My server is on a different port and I'm using rewrites/monorepo.

The user data is available straight away as they land on the layout.jsx file.

Any ideas? Thanks

0 Replies