Skip to content

Commit

Permalink
add info about .dev.vars.<environment-name>
Browse files Browse the repository at this point in the history
  • Loading branch information
emily-shen committed Oct 17, 2024
1 parent 4ab45e9 commit 24fe8b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/content/partials/workers/secrets-in-dev.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ The `.dev.vars` file should be formatted like a `dotenv` file, such as `KEY="VAL
SECRET_KEY="value"
API_TOKEN="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9"
```

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 comments on commit 24fe8b7

Please sign in to comment.