Compile TypeScript custom server in start script (#8)

Co-authored-by: Adw8 <adwaitgharpure@gmail.com>
Reviewed-on: #8
Co-authored-by: adwait <adwait@noreply.git.vdb.to>
Co-committed-by: adwait <adwait@noreply.git.vdb.to>
This commit is contained in:
adwait 2025-01-31 09:13:12 +00:00 committed by nabarun
parent 36f298ff96
commit ff48bdb954

View File

@ -4,8 +4,8 @@
"private": true,
"scripts": {
"dev": "ts-node --project tsconfig.server.json server.ts",
"build": "next build && tsc --project tsconfig.server.json",
"start": "NODE_ENV=production node dist/server.js",
"build": "next build",
"start": "tsc --project tsconfig.server.json && NODE_ENV=production PORT=80 node dist/server.js",
"lint": "next lint"
},
"dependencies": {