From 3773c6cb299a92e8f4a996c280b9494c3fad446b Mon Sep 17 00:00:00 2001 From: openhands Date: Fri, 24 Jul 2026 13:57:21 +0200 Subject: [PATCH] chore: switch from standalone to normal next start - 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 --- next.config.ts | 1 - package.json | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/next.config.ts b/next.config.ts index d787aa20..28b38627 100644 --- a/next.config.ts +++ b/next.config.ts @@ -39,7 +39,6 @@ const nextConfig: NextConfig = { // Disable Next.js telemetry productionBrowserSourceMaps: false, - output: "standalone", // Add caching headers for static assets async headers() { diff --git a/package.json b/package.json index b6aca5e3..a306cf0c 100644 --- a/package.json +++ b/package.json @@ -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 .",