Skip to content

Commit 64702cc

Browse files
committed
more fixups..
1 parent 9b41061 commit 64702cc

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/content/docs/workers/configuration/environment-variables.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ export default {
5252
[Environments in Wrangler](/workers/wrangler/environments) let you specify different configurations for the same Worker, including different values for `vars` in each environment.
5353
As `vars` is a [non-inheritable key](/workers/wrangler/configuration/#non-inheritable-keys), they are not inherited by environments and must be specified for each environment.
5454

55-
The example below sets up two environments, `staging` and `production`, with different values for `API_HOST`.
55+
The example below sets up two environments, `staging` and `production`, with different values for `API_HOST`.
5656

5757
<WranglerConfig>
5858

5959
```toml
6060
name = "my-worker-dev"
6161

62-
#top level environment
62+
# top level environment
6363
[vars]
6464
API_HOST = "api.example.com"
6565

@@ -72,7 +72,7 @@ API_HOST = "production.example.com"
7272

7373
</WranglerConfig>
7474

75-
To run Wrangler commands in specific environments, you can pass in the `--env` or `-e` flag. For example, you can develop the Worker in an environment called `staging` by running `npx wrangler dev --env=staging`, and deploy it with `npx wrangler deploy --env=staging`.
75+
To run Wrangler commands in specific environments, you can pass in the `--env` or `-e` flag. For example, you can develop the Worker in an environment called `staging` by running `npx wrangler dev --env staging`, and deploy it with `npx wrangler deploy --env staging`.
7676

7777
Learn about [environments in Wrangler](/workers/wrangler/environments).
7878

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
{}
3-
43
---
54

65
When developing your Worker or Pages Function, create a `.dev.vars` file in the root of your project to define secrets that will be used when running `wrangler dev` or `wrangler pages dev`, as opposed to using environment variables in the [Wrangler configuration file](/workers/configuration/environment-variables/#compare-secrets-and-environment-variables). This works both in local and remote development modes.
@@ -12,6 +11,6 @@ SECRET_KEY="value"
1211
API_TOKEN="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9"
1312
```
1413

15-
To set different secrets for each environment, create files named `.dev.vars.<environment-name>`. When you use `wrangler <command> --env <environment-name>`, the corresponding environment-specific file will be loaded instead of the `.dev.vars` file, so the two files are not merged.
14+
To set different secrets for each environment, create files named `.dev.vars.<environment-name>`. When you use `wrangler <command> --env <environment-name>`, the corresponding environment-specific file will be loaded instead of the `.dev.vars` file.
1615

1716
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)