Skip to content

Commit f6cb2f8

Browse files
authored
Clarify environments (#24279)
Using capitalizeed "Cloudflare Environments" is a bit confusing since it's not a named product
1 parent 3eb1147 commit f6cb2f8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/content/changelog/workers/2025-08-08-dot-env-in-local-dev.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ export default {
3737

3838
## Multiple environments with `.env` files
3939

40-
You may be using [Cloudflare Environments](/workers/wrangler/environments/) to deploy different versions of a Worker with distinct environment variables. For instance, you may have a production and staging environment.
41-
42-
To set different environment variables for each Cloudflare Environment, create files named `.env.<environment-name>`.
40+
If your Worker defines multiple [environments](/workers/wrangler/environments/), you can set different variables for each environment (ex: production or staging) by creating files named `.env.<environment-name>`.
4341

4442
When you use `wrangler <command> --env <environment-name>` or `CLOUDFLARE_ENV=<environment-name> vite dev`, the corresponding environment-specific file will also be loaded and merged with the `.env` file.
4543

0 commit comments

Comments
 (0)