ad4b09c744
- 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>
20 lines
428 B
TypeScript
20 lines
428 B
TypeScript
import path from "node:path";
|
|
import type { NextConfig } from "next";
|
|
|
|
const config: NextConfig = {
|
|
reactStrictMode: true,
|
|
typedRoutes: false,
|
|
transpilePackages: ["@dada/engine", "@dada/ai-client", "@dada/types"],
|
|
serverExternalPackages: ["sharp"],
|
|
turbopack: {
|
|
root: path.join(__dirname, "..", ".."),
|
|
},
|
|
experimental: {
|
|
serverActions: {
|
|
bodySizeLimit: "10mb",
|
|
},
|
|
},
|
|
};
|
|
|
|
export default config;
|