Skip to content

Commit bdd29d1

Browse files
committed
Fix spawn error on Windows
1 parent 9efc786 commit bdd29d1

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/orange-lamps-fail.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"open-next": patch
3+
---
4+
5+
Fix spawn error on Windows

packages/open-next/src/build.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ function buildNextjsApp(packager: "npm" | "yarn" | "pnpm") {
7373
cp.spawnSync(packager, packager === "npm" ? ["run", "build"] : ["build"], {
7474
stdio: "inherit",
7575
cwd: appPath,
76+
shell: true,
7677
});
7778
}
7879

0 commit comments

Comments
 (0)