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
|
// Disable Next.js telemetry
|
||||||
productionBrowserSourceMaps: false,
|
productionBrowserSourceMaps: false,
|
||||||
output: "standalone",
|
|
||||||
|
|
||||||
// Add caching headers for static assets
|
// Add caching headers for static assets
|
||||||
async headers() {
|
async headers() {
|
||||||
|
|||||||
+1
-3
@@ -9,9 +9,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"postbuild": "mkdir -p .next/standalone/.next/static && cp -r .next/static/* .next/standalone/.next/static/ 2>/dev/null; true",
|
"start": "next start",
|
||||||
"start": "node .next/standalone/server.js",
|
|
||||||
"deploy:next": "pnpm build && pm2 reload next --update-env",
|
|
||||||
"prisma:generate": "prisma generate",
|
"prisma:generate": "prisma generate",
|
||||||
"typecheck": "tsc --noEmit --incremental false",
|
"typecheck": "tsc --noEmit --incremental false",
|
||||||
"biome:check": "biome check --write .",
|
"biome:check": "biome check --write .",
|
||||||
|
|||||||
Reference in new issue
Block a user