diff --git a/src/content/changelog/workers/2025-08-08-dot-env-in-local-dev.mdx b/src/content/changelog/workers/2025-08-08-dot-env-in-local-dev.mdx index cc1bc651f059748..298fabc11678c4c 100644 --- a/src/content/changelog/workers/2025-08-08-dot-env-in-local-dev.mdx +++ b/src/content/changelog/workers/2025-08-08-dot-env-in-local-dev.mdx @@ -37,9 +37,7 @@ export default { ## Multiple environments with `.env` files -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. - -To set different environment variables for each Cloudflare Environment, create files named `.env.`. +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.`. When you use `wrangler --env ` or `CLOUDFLARE_ENV= vite dev`, the corresponding environment-specific file will also be loaded and merged with the `.env` file.