Skip to content

Commit 2621497

Browse files
committed
update environments section in wrangler configuration page
1 parent 3785ef9 commit 2621497

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ kv_namespaces = [
5252

5353
## Environments
5454

55-
The configuration for a Worker can become complex when you define different [environments](/workers/wrangler/environments/), and each environment has its own configuration.
56-
There is a default (top-level) environment and named environments that provide environment-specific configuration.
55+
You can define a different configurations for a Worker using Wrangler [environments](/workers/wrangler/environments/).
56+
There is a default (top-level) environment and you can create named environments that provide environment-specific configuration.
5757

58-
These are defined under `[env.name]` keys, such as `[env.staging]` which you can then preview or deploy with the `-e` / `--env` flag in the `wrangler` commands like `npx wrangler deploy --env staging`.
58+
These are defined under `[env.<name>]` keys, such as `[env.staging]` which you can then preview or deploy with the `-e` / `--env` flag in the `wrangler` commands like `npx wrangler deploy --env staging`.
5959

6060
The majority of keys are inheritable, meaning that top-level configuration can be used in environments. [Bindings](/workers/runtime-apis/bindings/), such as `vars` or `kv_namespaces`, are not inheritable and need to be defined explicitly.
6161

@@ -646,7 +646,7 @@ id = "<ID>"
646646

647647
</WranglerConfig>
648648

649-
### Images
649+
### Images
650650

651651
[Cloudflare Images](/images/transform-images/transform-via-workers/) lets you make transformation requests to optimize, resize, and manipulate images stored in remote sources.
652652

@@ -1304,17 +1304,17 @@ A common example of using a redirected configuration is where a custom build too
13041304

13051305
<WranglerConfig>
13061306

1307-
```toml title="wrangler.toml"
1308-
name = "my-worker"
1309-
main = "src/index.ts"
1310-
[[kv_namespaces]]
1311-
binding = "<BINDING_NAME1>"
1312-
id = "<NAMESPACE_ID1>"
1313-
```
1307+
```toml title="wrangler.toml"
1308+
name = "my-worker"
1309+
main = "src/index.ts"
1310+
[[kv_namespaces]]
1311+
binding = "<BINDING_NAME1>"
1312+
id = "<NAMESPACE_ID1>"
1313+
```
13141314

13151315
</WranglerConfig>
13161316

1317-
Note that this configuration points `main` at the user's code entry-point.
1317+
Note that this configuration points `main` at the user's code entry-point.
13181318

13191319
- Then, the user runs a custom build, which might read the user's Wrangler configuration file to find the source code entry-point:
13201320

0 commit comments

Comments
 (0)