Optimize Next.js memory and handle 404s

Configure startup and package-import optimizations, exclude generated Next.js files from TypeScript checks, and route fetch responses with status 404 to the not-found page.
This commit is contained in:
Ichsan Kurniawan
2026-11-18 18:20:27 +07:00
parent d4168b45f2
commit d10603acc8
4 changed files with 11 additions and 4 deletions
+2 -2
View File
@@ -12,7 +12,7 @@
"url": "https://github.com/ichsankurnia/hats-app/issues"
},
"scripts": {
"dev": "next dev -p 1209",
"dev": "set NODE_OPTIONS=\"--max-old-space-size=2048\" && next dev -p 1209",
"dev:save": "set NODE_TLS_REJECT_UNAUTHORIZED='0' && next dev -p 1209",
"build": "next build",
"start": "next start -p 7002",
@@ -95,4 +95,4 @@
"tw-animate-css": "^1.4.0",
"typescript": "^5"
}
}
}