We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
astro
1.7.1
Node, also tested on Netlify serverless
npm
Mac
I add export const prerender = true to a dynamic route and expect getStaticPaths to be respected. Actual behavior:
export const prerender = true
getStaticPaths
output: 'server'
prependForwardSlash
https://stackblitz.com/edit/github-rnb4zu?file=src%2Fpages%2Findex.astro,astro.config.mjs,src%2Fpages%2F%5Bslug%5D.astro
The text was updated successfully, but these errors were encountered:
fix(#5661): ensure getStaticPaths is correctly handled for prerendere…
224496e
…d pages
Please... someone to merge this PR. Thanks...
Sorry, something went wrong.
26aec4f
Handle getStaticPaths with prerendered pages (#5734)
55cea0a
* fix(#5661): ensure getStaticPaths is correctly handled for prerendered pages * test: add prerender getStaticPaths cases * chore: add changeset * test: add props to test suite * chore: update lockfile Co-authored-by: Nate Moore <nate@astro.build>
natemoo-re
Successfully merging a pull request may close this issue.
What version of
astro
are you using?1.7.1
Are you using an SSR adapter? If so, which one?
Node, also tested on Netlify serverless
What package manager are you using?
npm
What operating system are you using?
Mac
Describe the Bug
I add
export const prerender = true
to a dynamic route and expectgetStaticPaths
to be respected. Actual behavior:getStaticPaths
will be ignored withoutput: 'server'
,getStaticPaths
does not runprependForwardSlash
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-rnb4zu?file=src%2Fpages%2Findex.astro,astro.config.mjs,src%2Fpages%2F%5Bslug%5D.astro
Participation
The text was updated successfully, but these errors were encountered: