withastro / adapters

Home for Astro's core maintained adapters
46 stars 25 forks source link

Cloudflare v11 - "Could not read file: wrangler.toml" #300

Closed jaymakes11 closed 1 week ago

jaymakes11 commented 1 week ago

Astro Info

Astro                    v4.11.0
Node                     v20.11.0
System                   macOS (arm64)
Package Manager          npm
Output                   server
Adapter                  @astrojs/cloudflare
Integrations             @astrojs/tailwind
                         @astrojs/solid-js
                         @astrojs/sitemap
                         @playform/compress

Describe the Bug

After upgrading from the latest Cloudflare v10 to the new v11, both astro dev fails with the error:

Could not read file: wrangler.toml

And astro build fails with the error:

[ERROR] [content] Could not read file: wrangler.toml

Notes:

What's the expected result?

This error should not occur. It should be possible to run these commands without a wrangler.toml file.

Link to Minimal Reproducible Example

https://github.com/jaymakes11/astro-cloudflare-adapter-wrangler-error-repro

Participation