Skip to content

Commit

Permalink
Exclude standardPricingWarning from dryrun (#4880)
Browse files Browse the repository at this point in the history
* Exclude standardPricingWarning from dryrun

That way we do not need authentication for dryrun, again.

* fixup! Exclude standardPricingWarning from dryrun

* fixup! Exclude standardPricingWarning from dryrun

---------

Co-authored-by: petero-dk <2478689+petero-dk@users.noreply.github.com>
  • Loading branch information
petebacondarwin and petero-dk authored Jan 31, 2024
1 parent 7a34194 commit 65da40a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .changeset/twelve-coins-hear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"wrangler": patch
---

fix: do not attempt login during dry-run

The "standard pricing" warning was attempting to make an API call that was causing a login attempt even when on a dry-run.
Now this warning is disabled during dry-runs.

Fixes #4723
4 changes: 3 additions & 1 deletion packages/wrangler/src/deploy/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,9 @@ export async function deployHandler(
args.siteInclude,
args.siteExclude
);
await standardPricingWarning(accountId, config);

if (!args.dryRun) await standardPricingWarning(accountId, config);

await deploy({
config,
accountId,
Expand Down

0 comments on commit 65da40a

Please sign in to comment.