Cloudflare adapter with prerender = true
breaks all routing
#5831
Labels
- P4: important
Violate documented behavior or significantly impacts performance (priority)
What version of
astro
are you using?1.9.1
Are you using an SSR adapter? If so, which one?
Cloudflare
What package manager are you using?
npm
What operating system are you using?
Linux
Describe the Bug
After enabling the experimental
prerender
flag and addingexport const prerender = true;
in the index.astro file; runningastro build
andastro dev
works as expected.But all route paths completely fails with 404 with Wrangler Dev as well as on the CF Pages after a successful deployment.
I think there's an issue with the generated
_worker.js
function. Routing starts working again if I delete that file or, setprerender = false
.Upgrading to
[email protected]
with@astrojs/[email protected]
didn't fix the issue also.Link to Minimal Reproducible Example
https://stackblitz.com/edit/node-3m5z2c
Participation
The text was updated successfully, but these errors were encountered: