chore: switch from standalone to normal next start
Deploy / release (push) Skipped
Deploy / deploy (push) Failing after 2s

- Remove output:standalone from next.config.ts
- Remove postbuild standalone copy script
- Change start script from standalone/server.js to next start
- Update PM2 to run pnpm start
This commit is contained in:
openhands committed 2026-07-24 13:57:21 +02:00
1 parent c432d4e95d
commit 3773c6cb29
2 files changed
+1 -4

No files matched your search

-1
View File
@@ -39,7 +39,6 @@ const nextConfig: NextConfig = {
// Disable Next.js telemetry
productionBrowserSourceMaps: false,
output: "standalone",
// Add caching headers for static assets
async headers() {
+1 -3
View File
@@ -9,9 +9,7 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"postbuild": "mkdir -p .next/standalone/.next/static && cp -r .next/static/* .next/standalone/.next/static/ 2>/dev/null; true",
"start": "node .next/standalone/server.js",
"deploy:next": "pnpm build && pm2 reload next --update-env",
"start": "next start",
"prisma:generate": "prisma generate",
"typecheck": "tsc --noEmit --incremental false",
"biome:check": "biome check --write .",