Skip to content
Discussion options

You must be logged in to vote

Hi, the page you are trying to pass the custom query values to is automatically statically optimized at build time since you aren't defining a data method such as getServerSideProps.

Since this page is statically optimized to an HTML file at build time instead of re-rendering for each request, the custom query values can't be passed using a custom server like this unless you leverage the built-in dynamic-routing support in Next.js so that the route params can be parsed by Next.js or opt-out of the automatic static optimization by adding getServerSideProps to signify that the page requires re-rendering on each request

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@JW9506
Comment options

Answer selected by JW9506
Comment options

You must be logged in to vote
3 replies
@JW9506
Comment options

@jsonjunkie
Comment options

@JW9506
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
Converted from issue

This discussion was converted from issue #12586 on May 07, 2020 09:16.