Repository navigation
Expand file tree
/
Copy pathnext.config.ts
More file actions
48 lines (46 loc) · 1.55 KB
/
Copy pathnext.config.ts
File metadata and controls
48 lines (46 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
eslint: {
// Warning: This allows production builds to successfully complete even if your project has ESLint errors.
// NOTE: `next lint` is deprecated in Next 15 and the repo has pre-existing
// ESLint errors (mostly no-explicit-any) — this gate stays on deliberately.
ignoreDuringBuilds: true,
},
typescript: {
// Type-checked: `npx tsc --noEmit` is clean, so let build failures surface.
ignoreBuildErrors: false,
},
webpack: (config, { dev }) => {
if (dev) {
// The frontend shares its root with the Python backend. The gateway
// writes backend/chat_data.db on every persisted chat turn; if the dev
// watcher sees those writes it Fast-Refreshes mid-stream, remounting the
// page and aborting the in-flight SSE fetch (net::ERR_ABORTED) — which
// presents as "streaming stopped working". Keep the watcher on frontend
// sources only.
config.watchOptions = {
...config.watchOptions,
ignored: [
"**/node_modules/**",
"**/.git/**",
"**/.next/**",
"**/backend/**",
"**/rag_system/**",
"**/eval/**",
"**/lancedb/**",
"**/index_store/**",
"**/shared_uploads/**",
"**/logs/**",
"**/.venv/**",
"**/Documentation/**",
"**/*.db",
"**/*.db-wal",
"**/*.db-shm",
],
};
}
return config;
},
};
export default nextConfig;