fix(web): tame Next.js 16 dev server CPU runaway
- Disable typed routes (default-on in Next 16, loops infinitely with transpilePackages workspace setup, holding 500%+ CPU at idle) - Pin turbopack.root to monorepo root so a stray ~/pnpm-lock.yaml cannot misinfer the workspace boundary - Commit pnpm-lock.yaml; ignore .claude/ local plugin state Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -12,6 +12,7 @@ out
|
|||||||
|
|
||||||
.vercel
|
.vercel
|
||||||
.turbo
|
.turbo
|
||||||
|
.claude
|
||||||
|
|
||||||
.DS_Store
|
.DS_Store
|
||||||
*.log
|
*.log
|
||||||
|
|||||||
@@ -1,9 +1,14 @@
|
|||||||
|
import path from "node:path";
|
||||||
import type { NextConfig } from "next";
|
import type { NextConfig } from "next";
|
||||||
|
|
||||||
const config: NextConfig = {
|
const config: NextConfig = {
|
||||||
reactStrictMode: true,
|
reactStrictMode: true,
|
||||||
|
typedRoutes: false,
|
||||||
transpilePackages: ["@dada/engine", "@dada/ai-client", "@dada/types"],
|
transpilePackages: ["@dada/engine", "@dada/ai-client", "@dada/types"],
|
||||||
serverExternalPackages: ["sharp"],
|
serverExternalPackages: ["sharp"],
|
||||||
|
turbopack: {
|
||||||
|
root: path.join(__dirname, "..", ".."),
|
||||||
|
},
|
||||||
experimental: {
|
experimental: {
|
||||||
serverActions: {
|
serverActions: {
|
||||||
bodySizeLimit: "10mb",
|
bodySizeLimit: "10mb",
|
||||||
|
|||||||
Generated
+1545
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user