Skip to content

Commit

Permalink
close server before exit
Browse files Browse the repository at this point in the history
  • Loading branch information
feedthejim committed Feb 9, 2023
1 parent 862730d commit 74858dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/next/src/server/lib/start-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export function startServer(opts: StartServerOptions) {
warn(
'The server is running out of memory, restarting to free up memory.'
)
server.close()
process.exit(WORKER_SELF_EXIT_CODE)
}
})
Expand Down

0 comments on commit 74858dd

Please sign in to comment.