Skip to content

Commit 28e836a

Browse files
committed
passthrough -> wranglerArgs
1 parent e749aae commit 28e836a

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

packages/cloudflare/src/cli/args.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,5 +112,5 @@ function withWranglerPassthroughArgs<
112112
env: string | undefined;
113113
}>,
114114
>(args: T) {
115-
return { ...args, passthrough: getWranglerArgs(args) };
115+
return { ...args, wranglerArgs: getWranglerArgs(args) };
116116
}

packages/cloudflare/src/cli/commands/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { createOpenNextConfigIfNotExistent } from "../build/utils/create-config-
55
import { setupCLI } from "./setup-cli.js";
66

77
export async function buildCommand(args: {
8-
passthrough: string[];
8+
wranglerArgs: string[];
99
config: string | undefined;
1010
env: string | undefined;
1111
skipNextBuild: boolean;

packages/cloudflare/src/cli/commands/deploy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export async function deployCommand(args: WithWranglerArgs<{ cacheChunkSize: num
2727
options,
2828
[
2929
"deploy",
30-
...args.passthrough,
30+
...args.wranglerArgs,
3131
...(deploymentMapping
3232
? [`--var ${DEPLOYMENT_MAPPING_ENV_NAME}:${quoteShellMeta(JSON.stringify(deploymentMapping))}`]
3333
: []),

packages/cloudflare/src/cli/commands/preview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ export async function previewCommand(args: WithWranglerArgs<{ cacheChunkSize: nu
1313
cacheChunkSize: args.cacheChunkSize,
1414
});
1515

16-
runWrangler(options, ["dev", ...args.passthrough], { logging: "all" });
16+
runWrangler(options, ["dev", ...args.wranglerArgs], { logging: "all" });
1717
}

packages/cloudflare/src/cli/commands/setup-cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { OpenNextConfig } from "../../api/config.js";
1111
import { ensureCloudflareConfig } from "../build/utils/index.js";
1212

1313
export type WithWranglerArgs<T = unknown> = T & {
14-
passthrough: string[];
14+
wranglerArgs: string[];
1515
config: string | undefined;
1616
env: string | undefined;
1717
};

packages/cloudflare/src/cli/commands/upload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export async function uploadCommand(args: WithWranglerArgs<{ cacheChunkSize: num
2727
options,
2828
[
2929
"versions upload",
30-
...args.passthrough,
30+
...args.wranglerArgs,
3131
...(deploymentMapping
3232
? [`--var ${DEPLOYMENT_MAPPING_ENV_NAME}:${quoteShellMeta(JSON.stringify(deploymentMapping))}`]
3333
: []),

0 commit comments

Comments
 (0)