Skip to content

v6 + Cloudflare deployment fails on static output #15650

@NuroDev

Description

@NuroDev

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

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

Labels

- P4: importantViolate documented behavior or significantly impacts performance (priority)6-betaIssues affects the beta of Astro 6auto triage skippedneeds triageIssue needs to be triaged

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions