2026-06-29 17:51:54 -04:00
|
|
|
import type { NextConfig } from "next";
|
|
|
|
|
|
2026-08-10 13:36:26 -04:00
|
|
|
// /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).
|
2026-06-29 17:51:54 -04:00
|
|
|
const nextConfig: NextConfig = {
|
2026-08-18 14:10:02 -04:00
|
|
|
output: "standalone",
|
2026-07-23 18:02:24 -04:00
|
|
|
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,
|
|
|
|
|
},
|
2026-06-29 17:51:54 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default nextConfig;
|