Skip to content

Commit 6fb549f

Browse files
committed
Adds reference to managing env vars for multiple environmnets to Wrangler configuration docs
1 parent 4a30651 commit 6fb549f

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

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

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,10 @@ Example:
631631

632632
<Render file="envvar-example" />
633633

634+
:::tip
635+
For details on how to work with environment variables in multiple environments, see [Managing environment variables across multiple environments](/workers/configuration/environment-variables/#managing-environment-variables-across-multiple-environments).
636+
:::
637+
634638
### Hyperdrive
635639

636640
[Hyperdrive](/hyperdrive/) bindings allow you to interact with and query any Postgres database from within a Worker.
@@ -658,7 +662,7 @@ id = "<ID>"
658662

659663
</WranglerConfig>
660664

661-
### Images
665+
### Images
662666

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

@@ -1316,17 +1320,17 @@ A common example of using a redirected configuration is where a custom build too
13161320

13171321
<WranglerConfig>
13181322

1319-
```toml title="wrangler.toml"
1320-
name = "my-worker"
1321-
main = "src/index.ts"
1322-
[[kv_namespaces]]
1323-
binding = "<BINDING_NAME1>"
1324-
id = "<NAMESPACE_ID1>"
1325-
```
1323+
```toml title="wrangler.toml"
1324+
name = "my-worker"
1325+
main = "src/index.ts"
1326+
[[kv_namespaces]]
1327+
binding = "<BINDING_NAME1>"
1328+
id = "<NAMESPACE_ID1>"
1329+
```
13261330

13271331
</WranglerConfig>
13281332

1329-
Note that this configuration points `main` at the user's code entry-point.
1333+
Note that this configuration points `main` at the user's code entry-point.
13301334

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

0 commit comments

Comments
 (0)