Files

17 lines
691 B
TypeScript
Raw Permalink Normal View History

import type { NextConfig } from "next";
// /api/* is handled by app/api/[...path]/route.ts (long-timeout proxy to :3001).
// Do NOT use rewrites for /api - Next rewrite proxy hard-times-out ~30s and returns
// plain "Internal Server Error" for slow LLM paths (dealerMap.explain, userLlm.test).
const nextConfig: NextConfig = {
output: "standalone",
typescript: {
// The server/ directory uses .ts import extensions (Node native TS) and has its
// own type-check via `npm run typecheck` in server/. Skip Next.js type checking
// to avoid false errors from server files that aren't part of the frontend bundle.
ignoreBuildErrors: true,
},
};
export default nextConfig;