Remove dev-dependencies from the final build

This commit is contained in:
Alan Grainger
2024-11-01 08:55:54 +01:00
parent 6d34cdaf88
commit ea5cb3acb8
3 changed files with 17 additions and 6 deletions
+4
View File
@@ -91,6 +91,10 @@ const getSize = (req: Request) => {
*/
export const log = (message: string) => console.log(dayjs().format() + ' ' + message)
// Handle process termination requests (e.g. Ctrl+C)
process.on('SIGTERM', () => { process.exit(0) })
process.on('SIGINT', () => { process.exit(0) })
app.listen(3000, () => {
console.log(dayjs().format() + ' Server started')
})