Skip to content

Commit c3c457d

Browse files
committed
refactor
1 parent f87714a commit c3c457d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/open-next/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function runLocally() {
6969
console.error(
7070
"OpenNext server function not found. Please build it before running this command.",
7171
);
72-
return;
72+
process.exit(1);
7373
}
7474
printHeader("Running OpenNext locally");
7575
spawnSync("node", [handlerPath], {
@@ -83,7 +83,7 @@ function writeLocalConfig() {
8383
console.error(
8484
"open-next.config.local.ts already exists. Please remove it before running this command.",
8585
);
86-
return;
86+
process.exit(1);
8787
}
8888

8989
try {

0 commit comments

Comments
 (0)