You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/workers/wrangler/configuration.mdx
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,10 +52,10 @@ kv_namespaces = [
52
52
53
53
## Environments
54
54
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.
57
57
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`.
59
59
60
60
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.
61
61
@@ -646,7 +646,7 @@ id = "<ID>"
646
646
647
647
</WranglerConfig>
648
648
649
-
### Images
649
+
### Images
650
650
651
651
[Cloudflare Images](/images/transform-images/transform-via-workers/) lets you make transformation requests to optimize, resize, and manipulate images stored in remote sources.
652
652
@@ -1304,17 +1304,17 @@ A common example of using a redirected configuration is where a custom build too
1304
1304
1305
1305
<WranglerConfig>
1306
1306
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
+
```
1314
1314
1315
1315
</WranglerConfig>
1316
1316
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.
1318
1318
1319
1319
- Then, the user runs a custom build, which might read the user's Wrangler configuration file to find the source code entry-point:
0 commit comments