Astro Info
Astro v6.0.0-beta.15
Node v24.12.0
System macOS (arm64)
Package Manager bun
Output static
Adapter @astrojs/cloudflare
Integrations none
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
If you use the v6 beta of Astro with the Cloudflare adapter (also using the latest beta version) and then set the Astro output mode to static it fails to deploy when running wrangler deploy:
✘ [ERROR] There is a deploy configuration at ".wrangler/deploy/config.json".
But the redirected configuration path it points to, "dist/server/wrangler.json", does not exist.
What's the expected result?
In the v6 upgrade guide it does say:
If you’re using Astro as a static site builder, you don’t need an adapter
But I am unsure whether or not it would be better to throw a build error here, rather than waiting for the user to try and deploy the build (Like I did) & have to go in to realise there is no dist/server/ generated for the Wrangler deploy config to point to.
Additionally, to that same point: Wouldn't pre-rendering when relying on, for example, a D1 database mean an adapter is still needed?
Link to Minimal Reproducible Example
https://github.com/nurodev/repro-astro-v6-cf-output-mode
Participation
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
If you use the v6 beta of Astro with the Cloudflare adapter (also using the latest beta version) and then set the Astro
outputmode tostaticit fails to deploy when runningwrangler deploy:What's the expected result?
In the v6 upgrade guide it does say:
But I am unsure whether or not it would be better to throw a build error here, rather than waiting for the user to try and deploy the build (Like I did) & have to go in to realise there is no
dist/server/generated for the Wrangler deploy config to point to.Additionally, to that same point: Wouldn't pre-rendering when relying on, for example, a D1 database mean an adapter is still needed?
Link to Minimal Reproducible Example
https://github.com/nurodev/repro-astro-v6-cf-output-mode
Participation