Skip to content

Commit ba35663

Browse files
authoredMar 26, 2025··
fix: bun failing to spawn wrangler (#503)
1 parent bb12b8b commit ba35663

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
 

‎.changeset/ten-parents-add.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@opennextjs/cloudflare": patch
3+
---
4+
5+
fix: bun failing to spawn wrangler

‎packages/cloudflare/src/cli/utils/run-wrangler.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function runWrangler(options: BuildOptions, args: string[], wranglerOpts:
1616
const result = spawnSync(
1717
options.packager,
1818
[
19-
"exec",
19+
options.packager === "bun" ? "x" : "exec",
2020
"wrangler",
2121
...args,
2222
wranglerOpts.environment && `--env ${wranglerOpts.environment}`,

0 commit comments

Comments
 (0)
Please sign in to comment.