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
This commit is contained in:
1 parent
c432d4e95d
commit
3773c6cb29
2 files changed
+1
-4
No files matched your search
@@ -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
@@ -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 .",
|
||||
|
||||
Reference in new issue
Block a user