What version of astro are you using?
2.0.6
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
npm
What operating system are you using?
Mac
Describe the Bug
Cloudflare Pages is looking for a 404.html file to handle 404 responses, however, the production build of the final files includes a 404 folder with index.html inside. This seems to happen with SSG mode and dynamic routing.
I've tested this by going to domain.com/404/ and the page loads up on Cloudflare pages. Going to domain.com/404 goes back to the home page. I've also checked the build folder (/dist) and verified this result.

I've created a version of this bug with stackblitz linked below. Simply add /404/ to the end and try without i.e. /404
Thanks!
Link to Minimal Reproducible Example
https://stackblitz.com/edit/withastro-astro-daj2vt?file=src/pages/index.astro
Participation
What version of
astroare you using?2.0.6
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
npm
What operating system are you using?
Mac
Describe the Bug
Cloudflare Pages is looking for a 404.html file to handle 404 responses, however, the production build of the final files includes a 404 folder with index.html inside. This seems to happen with SSG mode and dynamic routing.
I've tested this by going to domain.com/404/ and the page loads up on Cloudflare pages. Going to domain.com/404 goes back to the home page. I've also checked the build folder (/dist) and verified this result.
I've created a version of this bug with stackblitz linked below. Simply add /404/ to the end and try without i.e. /404
Thanks!
Link to Minimal Reproducible Example
https://stackblitz.com/edit/withastro-astro-daj2vt?file=src/pages/index.astro
Participation