Skip to content
Discussion options

You must be logged in to vote

I think you can use the placeholder trick: https://nextjs.org/docs/messages/empty-generate-static-params#option-2-use-a-placeholder-param-for-validation

So if the userId is the placeholder, or no user, then notFound() - I tried a bit locally, and I see 404 Not Found w/ cURL.

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@abhishekmardiya
Comment options

@icyJoseph
Comment options

Answer selected by abhishekmardiya
@abhishekmardiya
Comment options

@icyJoseph
Comment options

@abhishekmardiya
Comment options

@abhishekmardiya
Comment options

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