Skip to content
Discussion options

You must be logged in to vote

Static generation cannot have runtime requirements, pages will be generated at build time to static files that ignore user's permissions and other filters that may be required when you request the page. However, you could try adding an API endpoint on top of the route and redirect an user if he cannot enter the page (but that means you'll have to run a serverless function for every request to make the check). If your pages aren't known you could try something more simple and only show navigations to the pages that an user can see.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@julianklotz
Comment options

@abbott
Comment options

Answer selected by julianklotz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants