Skip to content
Discussion options

You must be logged in to vote

Rendering multiple versions for different search param values is not possible -- prerendering outputs a single HTML file per page, and cannot know the value of search params at build time.

The docs warn against accessing url.searchParams for prerendered pages:

Accessing url.searchParams during prerendering is forbidden. If you need to use it, ensure you are only doing so in the browser (for example in onMount).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by 205g0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants