Skip to content

Commit 13d7627

Browse files
authored
add info about .dev.vars.<environment-name> (#17594)
1 parent 5ae0ef6 commit 13d7627

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ The `.dev.vars` file should be formatted like a `dotenv` file, such as `KEY="VAL
1111
SECRET_KEY="value"
1212
API_TOKEN="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9"
1313
```
14+
15+
You can set secrets per environment by creating additional files with the naming convention `.dev.vars.<environment-name>`. Like other environment variables, secrets are [non-inheritable](/workers/wrangler/configuration/#non-inheritable-keys) and must be defined per environment.

0 commit comments

Comments
 (0)