Skip to content

Commit 85cce89

Browse files
committed
fix(cli): enable gracefulShutdown only in production mode
1 parent 196cb24 commit 85cce89

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cli.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ async function serve() {
120120
} as Partial<ServerOptions>;
121121

122122
const server = srvxServe({
123+
gracefulShutdown: options._prod,
123124
...serverOptions,
124125
error: (error) => {
125126
console.error(error);

0 commit comments

Comments
 (0)