Dynamic route not prerendered with adapter-static #8688
-
I have a routing structure of : ├ (app)/ /(app)/home/manifolds/[id] => not pre-rendered ❌ Error:
According to the doc it's possible to prerender a page that depends on the route parameters, I don't know why this is not working. When export const prerender = 'auto' is used, the build works but the page shows 500 on the nginx server, 404 on Netlify. adapter-static used. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
The builder crawls your website to look for links such as Otherwise, you can explicitly specify them in |
Beta Was this translation helpful? Give feedback.
-
For others, I found a more detailed answer here |
Beta Was this translation helpful? Give feedback.
-
I had a |
Beta Was this translation helpful? Give feedback.
-
What if It seems like settings |
Beta Was this translation helpful? Give feedback.
The builder crawls your website to look for links such as
/home/manifolds/123
to know how to prerender that dynamic route. It cannot prerender the route without knowing what the value of[id]
is or how many there of them there are.Otherwise, you can explicitly specify them in
svelte.config.js
underconfig.kit.prerender.entries
.See the docs for more info about that config option.
https://kit.svelte.dev/docs/configuration#prerender