Skip to content

Commit adac7bd

Browse files
committed
fix: Correct NestJS start script path
🔧 Fix NestJS Start Path ## Issue Identified: - NestJS build creates files in dist/src/ directory - Start script was looking for dist/main.js (wrong path) - Debug output showed main.js NOT FOUND in dist/ ## Solution: - Updated start script: 'node dist/main.js' → 'node dist/src/main.js' - NestJS build output goes to dist/src/ not dist/ ## Key Change: - package.json: Fixed start script path to match actual build output - NestJS compiles TypeScript to dist/src/ directory structure This fixes the production deployment where the container couldn't find the main.js file because it was in the wrong location.
1 parent d134814 commit adac7bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nodebook-base/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"type": "module",
77
"scripts": {
88
"test": "jest",
9-
"start": "node dist/main.js",
9+
"start": "node dist/src/main.js",
1010
"dev": "npx nest start --watch",
1111
"build": "npx nest build",
1212
"start:legacy": "node server.js",

0 commit comments

Comments
 (0)