Skip to content

Commit bfbd362

Browse files
authored
Fix the description of --keep-vars (#22386)
1 parent 78599c4 commit bfbd362

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/content/docs/workers/wrangler/commands.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,8 @@ None of the options for this command are required. Also, many can be set in your
311311
- Compile a project without actually deploying to live servers. Combined with `--outdir`, this is also useful for testing the output of `npx wrangler deploy`. It also gives developers a chance to upload our generated sourcemap to a service like Sentry, so that errors from the Worker can be mapped against source code, but before the service goes live.
312312
- `--keep-vars` <Type text="boolean" /> <MetaInfo text="(default: false) optional" />
313313
- It is recommended best practice to treat your Wrangler developer environment as a source of truth for your Worker configuration, and avoid making changes via the Cloudflare dashboard.
314-
- If you change your environment variables or bindings in the Cloudflare dashboard, Wrangler will override them the next time you deploy. If you want to disable this behaviour set `keep-vars` to `true`.
314+
- If you change your environment variables in the Cloudflare dashboard, Wrangler will override them the next time you deploy. If you want to disable this behaviour set `keep-vars` to `true`.
315+
- Secrets are never deleted by a deployment whether this flag is true or false.
315316
- `--dispatch-namespace` <Type text="string" /> <MetaInfo text="optional" />
316317
- Specify the [Workers for Platforms dispatch namespace](/cloudflare-for-platforms/workers-for-platforms/get-started/configuration/#2-create-a-dispatch-namespace) to upload this Worker to.
317318
- `--metafile` <Type text="string" /> <MetaInfo text="optional" />

0 commit comments

Comments
 (0)