diff --git a/server.js b/server.js index 8a11bbd..809e932 100644 --- a/server.js +++ b/server.js @@ -9,6 +9,8 @@ const dev = process.env.NODE_ENV !== 'production' const app = next({ dev }) const handle = app.getRequestHandler() +process.on('SIGINT', process.exit) + if (!dev) { const LOGS_ID = `${process.env.LOGS_SECRET_PREFIX}:${process.env.NOW_URL}` require('now-logs')(LOGS_ID)