Skip to content

Commit

Permalink
fix: Bypass terminus if no signals are passed
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Dec 12, 2023
1 parent aa0b19c commit 1cfc3d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ export async function startServer(
],
})

if (signals.length === 0) return new Server({ server, port })

return new Server({
server: createTerminus(server, {
onShutdown: async () => {
Expand Down

0 comments on commit 1cfc3d6

Please sign in to comment.