Skip to content

Commit b9b2724

Browse files
Apply suggestions from code review
Co-authored-by: Pete Bacon Darwin <[email protected]>
1 parent 2f94681 commit b9b2724

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,7 @@ When this `config.json` file exists, Wrangler will follow the `configPath` (rela
12981298
Wrangler will display messaging to the user to indicate that the configuration has been redirected to a different file than the user's configuration file.
12991299

13001300
The generated configuration file should not include any [environments](#environments).
1301-
This is because such a file, when required, should be created based on a target environment's specific values and tools should generate distinct configuration files for different environments.
1301+
This is because such a file, when required, should be created as part of a build step, which should already target a specific environment. These build tools should generate distinct deployment configuration files for different environments.
13021302

13031303
### Custom build tool example
13041304

@@ -1334,7 +1334,7 @@ A common example of using a redirected configuration is where a custom build too
13341334

13351335
We'll assume that `my-tool` is specifically targeting the `staging` environment (for instance set by the user with some option of `my-tool`).
13361336

1337-
- This `my-tool` generates a `dist` directory that contains both compiled code and a new generated deployment configuration file.
1337+
- 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.
13381338
It also creates a `.wrangler/deploy/config.json` file that redirects Wrangler to the new, generated deployment configuration file:
13391339

13401340
<FileTree>

0 commit comments

Comments
 (0)