-
ProblemPage router hooks object does not receive a populated query object. When I use the To Reproducehttps://github.com/JW9506/nextjs-bug-reproduce Issue: the Router hook received in System information
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Can someone help? Or am I doing something wrong in this implementation of url masking? |
Beta Was this translation helpful? Give feedback.
-
Hi, the page you are trying to pass the custom Since this page is statically optimized to an HTML file at build time instead of re-rendering for each request, the custom |
Beta Was this translation helpful? Give feedback.
-
hey, check your repo, i used next router to get access to params instead of link |
Beta Was this translation helpful? Give feedback.
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 asgetServerSideProps
.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 addinggetServerSideProps
to signify that the page requires re-rendering on each request