New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prerender.Routes problem dealing with trailing slashes #24392
Comments
Start a new pull request in StackBlitz Codeflow. |
If you log the |
Hey @danielroe thanks for the quick answer, the Instead the route param is used as the cache key. Only including a single string Sorry for the confusion, I've updated the reproduction |
Same problem. It happen after upgrading to |
For me it started with |
Environment
Reproduction
https://stackblitz.com/edit/github-rqmpdd?file=pages%2F[..._].vue,layouts%2Fdefault.vue,nuxt.config.ts
Content has been fetched, even when it should be pregenerated
should appear in console even though all routes should've been prerenderedDescribe the bug
When adding routes with a trailing slash to nitro.prerender.routes the prerendered content is not used and the page is refetched instead.
Additional context
The behaviour does not seem to appear with nuxt version
3.6.5
https://stackblitz.com/edit/github-rqmpdd-ih3byq?file=pages%2F[..._].vue,nuxt.config.ts,layouts%2Fdefault.vue,pages%2Findex.vue
Logs
No response
The text was updated successfully, but these errors were encountered: