Skip to content

Commit f8f5001

Browse files
Update secrets-in-dev.mdx (#24447)
Clarify that you should put the .env file in the same directory as your Wrangler configuration file. The previous instruction, to add it to your project root, is confusing as there are different ways to interpret this.
1 parent 415babd commit f8f5001

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Do not use `vars` to store sensitive information in your Worker's Wrangler configuration file. Use secrets instead.
77
:::
88

9-
Put secrets for use in local development in either a `.dev.vars` file or a `.env` file, in the root of your project.
9+
Put secrets for use in local development in either a `.dev.vars` file or a `.env` file, in the same directory as the Wrangler configuration file.
1010

1111
:::info
1212
Choose to use either `.dev.vars` or `.env` but not both. If you define a `.dev.vars` file, then values in `.env` files will not be included in the `env` object during local development.

0 commit comments

Comments
 (0)