Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/content/docs/en/guides/integrations-guide/cloudflare.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -654,4 +654,14 @@ The `cloudflare-binding` service uses the [Cloudflare Images binding](https://de

To revert to the previous behavior, where image transformation was only available on prerendered routes at build time, set `imageService: 'compile'` explicitly in your adapter config.

### Changed: Deploy to Cloudflare Environment

In Astro 5.x, you could build your Astro project once and deploy it to a specific Cloudflare Environment with `wrangler deploy --env some-env`.

Since Astro 6.0, the integration relies on the Cloudflare Vite plugin and this behavior has changed. The environment is now baked during the build phase. Therefore, you must build your project separately for each environment.

To deploy to a specific Cloudflare environment, prefix your command with the `CLOUDFLARE_ENV` variable. For example, the command `CLOUDFLARE_ENV=some-env astro build && wrangler deploy` will build your Astro project and deploy it with Wrangler using the `some-env` environment.

<ReadMore>Learn how to update your [Cloudflare's environments](https://developers.cloudflare.com/workers/vite-plugin/reference/cloudflare-environments/) in the [Migrate from wrangler dev guide](https://developers.cloudflare.com/workers/vite-plugin/reference/migrating-from-wrangler-dev/#cloudflare-environments).</ReadMore>

[astro-integration]: /en/guides/integrations-guide/
Loading