We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f44c23 commit e457d68Copy full SHA for e457d68
packages/blitz/src/cli/utils/next-utils.ts
@@ -1,5 +1,6 @@
1
import {ChildProcess} from "child_process"
2
import {spawn} from "cross-spawn"
3
+import os from "os"
4
import detect from "detect-port"
5
import path from "path"
6
import {existsSync, readJSONSync} from "fs-extra"
@@ -127,7 +128,13 @@ export function startCustomServer(
127
128
console.log("\n")
129
//@ts-ignore -- incorrect TS type from node
130
process.exitCode = RESTART_CODE
- process.kill("SIGABRT")
131
+ // Check if the system is Windows
132
+ if (os.platform() === "win32") {
133
+ // Windows doesn't support SIGABRT, use SIGINT instead
134
+ process.kill("SIGINT")
135
+ } else {
136
+ process.kill("SIGABRT")
137
+ }
138
}
139
},
140
0 commit comments