From 24fe8b7864b0a99c6399803b49453eb0321456f3 Mon Sep 17 00:00:00 2001 From: emily-shen <69125074+emily-shen@users.noreply.github.com> Date: Thu, 17 Oct 2024 13:37:34 +0100 Subject: [PATCH] add info about `.dev.vars.` --- src/content/partials/workers/secrets-in-dev.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/content/partials/workers/secrets-in-dev.mdx b/src/content/partials/workers/secrets-in-dev.mdx index f9f2f53c9e34d8d..9f95cf6c5cee8ad 100644 --- a/src/content/partials/workers/secrets-in-dev.mdx +++ b/src/content/partials/workers/secrets-in-dev.mdx @@ -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.`. Like other environment variables, secrets are [non-inheritable](/workers/wrangler/configuration/#non-inheritable-keys) and must be defined per environment.