Skip to content

Commit ad00291

Browse files
apply suggested changes
1 parent b4cba0e commit ad00291

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,15 +1323,13 @@ A common example of using a redirected configuration is where a custom build too
13231323

13241324
This configuration points `main` at the user's code entry-point and defines the `MY_VARIABLE` variable in two different environments.
13251325

1326-
- Then, the user runs a custom build, which might read the user's Wrangler configuration file to find the source code entry-point:
1326+
- Then, the user runs a custom build for a given environment (for example `staging`). This will read the user's Wrangler configuration file to find the source code entry-point and environment specific settings:
13271327

13281328
```bash
1329-
> my-tool build
1329+
> my-tool build --env=staging
13301330
```
13311331

1332-
We'll assume that `my-tool` is specifically targeting the `staging` environment (for instance set by the user with some option of `my-tool`).
1333-
1334-
- This `my-tool` generates a `dist` directory that contains both compiled code and a new generated deployment configuration file, containing only the settings for the given environment.
1332+
- `my-tool` generates a `dist` directory that contains both compiled code and a new generated deployment configuration file, containing only the settings for the given environment.
13351333
It also creates a `.wrangler/deploy/config.json` file that redirects Wrangler to the new, generated deployment configuration file:
13361334

13371335
<FileTree>

0 commit comments

Comments
 (0)