-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
fix(prerendering): never prerender custom 500 routes #8031
Conversation
🦋 Changeset detectedLatest commit: 06350df The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
To be clear, these routes are currently rendered just-in-time, or don't work at all (at least, with the node adapter.) This change prevents the manifest corruption that occurs when prerendering is attempted. |
sgtm |
aee6ac0
to
3a734b1
Compare
Astro core doesn't support prerendering 404.astro, it is prerendered into 404.html but the router renders it just-in-time anyway. However, the netlify adapter is able to achieve the effect by using Only considering 500.astro ineligible still solves the immediate issue. I think actually |
There is a better way. Closing in favor of #8070 |
Changes
Future Work
Testing
Pending
Docs
Does not affect usage