Skip to content

Commit

Permalink
default x-provision flag to false
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundhung committed Nov 27, 2024
1 parent ab67e0d commit 4e33617
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/wrangler/src/api/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export async function unstable_dev(
...options,
logLevel: options?.logLevel ?? defaultLogLevel,
port: options?.port ?? 0,
experimentalProvision: undefined,
experimentalProvision: false,
experimentalVersions: undefined,
experimentalDevEnv: undefined,
experimentalRegistry: fileBasedRegistry,
Expand Down
2 changes: 1 addition & 1 deletion packages/wrangler/src/deploy/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export async function deployHandler(args: DeployArgs) {
await run(
{
FILE_BASED_REGISTRY: false,
RESOURCES_PROVISION: args.experimentalProvision ?? false,
RESOURCES_PROVISION: args.experimentalProvision,
},
() => deployWorker(args)
);
Expand Down
3 changes: 2 additions & 1 deletion packages/wrangler/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,9 @@ export function createCLIParser(argv: string[]) {
return true;
})
.option("experimental-provision", {
describe: `Automatic resources provision`,
describe: `Experimental: Enable automatic resource provisioning`,
type: "boolean",
default: false,
hidden: true,
alias: ["x-provision"],
})
Expand Down
2 changes: 1 addition & 1 deletion packages/wrangler/src/yargs-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export interface CommonYargsOptions {
config: string | undefined;
env: string | undefined;
"experimental-versions": boolean | undefined;
"experimental-provision": boolean | undefined;
"experimental-provision": boolean;
}

/**
Expand Down

0 comments on commit 4e33617

Please sign in to comment.