pre render + dynamic segments #14422
Unanswered
AmirShafikhani
asked this question in
Q&A
Replies: 1 comment
-
If you don't disable SSR, you should be able to prefetch only some routes and let the others be render at runtime |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
is there any way to implement pre-rendering + dynamic segment when we dont know all the segments to bring them in the prerender array in configs ?
for example in this route "dynamic/:id" i only have 2 ids (id = 1 and id = 2)
at this time my config will look like this:
prerender: () => {
return ["/dynamic/1", "/dynamic/2"];
}
and i have these two pages after running the build.
what if after build i have a third segment like (id = 3) and want it to be in the build after the first initial render.
generally im looking for a feature like: export const dynamicParams = true in Next js.
Beta Was this translation helpful? Give feedback.
All reactions