Skip to content

Commit d83e2bf

Browse files
clarify env vars that control handling
1 parent 382757c commit d83e2bf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/content/partials/workers/secrets-in-dev.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ When you select a Cloudflare environment in your local development, the correspo
3434
- `.env.<environment-name>`
3535
- `.env` (least specific)
3636

37-
:::note
38-
To disable loading local dev vars from `.env` files without providing a `.dev.vars` file, set the `CLOUDFLARE_LOAD_DEV_VARS_FROM_DOT_ENV` environment variable to `"false"`.
39-
:::
37+
:::note[Controlling `.env` handling]
38+
It is possible to control how `.env` files are loaded in local development by setting environment variables on the process running the tools.
39+
40+
- To disable loading local dev vars from `.env` files without providing a `.dev.vars` file, set the `CLOUDFLARE_LOAD_DEV_VARS_FROM_DOT_ENV` environment variable to `"false"`.
41+
- To include every environment variable defined in your system's process environment as a local development variable, ensure there is no `.dev.vars` and then set the `CLOUDFLARE_INCLUDE_PROCESS_ENV` environment variable to `"true"`.
4042

41-
:::note
42-
To include every environment variable defined in your system's process environment as a local development variable, ensure there is no `.dev.vars` and then set the `CLOUDFLARE_INCLUDE_PROCESS_ENV` environment variable to `"true"`.
4343
:::

0 commit comments

Comments
 (0)