Using dynamic routes in SSR mode with prerender causes "Cannot read properties of undefined (reading 'endsWith') " #5838
Labels
- P4: important
Violate documented behavior or significantly impacts performance (priority)
What version of
astro
are you using?1.9.2
Are you using an SSR adapter? If so, which one?
Netlify
What package manager are you using?
npm
What operating system are you using?
Linux
Describe the Bug
When using the new prerender option in SSR mode an error is thrown if you try:
export const prerender = true;
In a dynamic route file (see stackblitz example src/pages/category/[slug].astro)
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-f5zg4q?file=src/pages/category/[slug].astro
Participation
The text was updated successfully, but these errors were encountered: