Skip to content

Commit

Permalink
check flag!!
Browse files Browse the repository at this point in the history
  • Loading branch information
emily-shen committed Jan 10, 2025
1 parent 78c1649 commit 22e9484
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions packages/wrangler/src/deploy/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import { loadSourceMaps } from "../deployment-bundle/source-maps";
import { confirm } from "../dialogs";
import { getMigrationsToUpload } from "../durable";
import { UserError } from "../errors";
import { getFlag } from "../experimental-flags";
import { logger } from "../logger";
import { getMetricsUsageHeaders } from "../metrics";
import { isNavigatorDefined } from "../navigator-user-agent";
Expand Down Expand Up @@ -799,13 +800,15 @@ See https://developers.cloudflare.com/workers/platform/compatibility-dates for m
} else {
assert(accountId, "Missing accountId");

await provisionBindings(
bindings,
accountId,
scriptName,
props.experimentalAutoCreate,
props.config
);
getFlag("RESOURCES_PROVISION")
? await provisionBindings(
bindings,
accountId,
scriptName,
props.experimentalAutoCreate,
props.config
)
: null;
await ensureQueuesExistByConfig(config);
let bindingsPrinted = false;

Expand Down

0 comments on commit 22e9484

Please sign in to comment.