You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Copy file name to clipboardExpand all lines: src/content/partials/workers/secrets-in-dev.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
Do not use `vars` to store sensitive information in your Worker's Wrangler configuration file. Use secrets instead.
7
7
:::
8
8
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.
10
10
11
11
:::info
12
12
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