Skip to content

Commit 50cfa2b

Browse files
committed
refactor: support backwards compatibility with environment names and related CLI flags
1. When in Legacy environment mode we should not compute name field if specified in an environment. 2. Throw an Error when `--env` and `--name` are used together in Legacy Environment, except for Secrets & Tail which are using a special case `getLegacyScriptName` for parity with Wrangler1 3. Started the refactor for args being utilized at the Config level, currently checking for Legacy Environment only. Fixes #672
1 parent 82e4143 commit 50cfa2b

File tree

7 files changed

+370
-142
lines changed

7 files changed

+370
-142
lines changed

.changeset/swift-apes-battle.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
"wrangler": patch
3+
---
4+
5+
refactor: support backwards compatibility with environment names and related CLI flags
6+
7+
1. When in Legacy environment mode we should not compute name field if specified in an environment.
8+
2. Throw an Error when `--env` and `--name` are used together in Legacy Environment, except for Secrets & Tail which are using a special case `getLegacyScriptName` for parity with Wrangler1
9+
3. Started the refactor for args being utilized at the Config level, currently checking for Legacy Environment only.
10+
11+
Fixes https://github.com/cloudflare/wrangler2/issues/672

0 commit comments

Comments
 (0)