fix: standalone start script copies static files automatically

- scripts/start.js: copies .next/static to .next/standalone/.next/static
  before launching the standalone server (prevents CSS 404)
- package.json: start script now uses scripts/start.js
- Dockerfile: removed fragile manual better-sqlite3 copy
  (already included in standalone output)
- scripts/setup.sh: added local prod option for npm start
This commit is contained in:
renato97
2026-07-23 16:25:52 -03:00
parent 25449aa5df
commit 4e9f815a53
4 changed files with 58 additions and 11 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"start": "node scripts/start.js",
"lint": "eslint"
},
"dependencies": {