Switch from standalone to standard Next.js build

Removes output: "standalone" from next.config.js, updates build/start/preview
scripts to use next build/next start, and updates Dockerfile to copy .next
output directory and run via bun run start instead of server.js.

https://claude.ai/code/session_014126WHVRT8mftmqkU6dajG
This commit is contained in:
Claude
2026-06-11 15:50:38 +00:00
parent 17971f2a98
commit 6b1173b4db
3 changed files with 5 additions and 7 deletions
+3 -3
View File
@@ -4,7 +4,7 @@
"private": true,
"type": "module",
"scripts": {
"build": "next build && cp -r .next/static .next/standalone/.next/static && cp -r public .next/standalone/public",
"build": "next build",
"check": "eslint . && tsc --noEmit",
"db:generate": "drizzle-kit generate",
"db:migrate": "bun src/server/db/migrate.ts",
@@ -20,8 +20,8 @@
"format:write": "prettier --write \"**/*.{ts,tsx,js,jsx,mdx}\" --cache",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"preview": "next build && node .next/standalone/server.js",
"start": "node .next/standalone/server.js",
"preview": "next build && next start",
"start": "next start",
"typecheck": "tsc --noEmit"
},
"dependencies": {