-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
50 lines (46 loc) · 1.32 KB
/
next.config.js
File metadata and controls
50 lines (46 loc) · 1.32 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
49
50
const path = require('path');
/** @type {import('next').NextConfig} */
const nextConfig = {
// Development settings
reactStrictMode: true,
// Disable TypeScript and ESLint errors during build
typescript: {
ignoreBuildErrors: true,
},
eslint: {
ignoreDuringBuilds: true,
},
// Output configuration for Vercel
output: 'standalone',
// Trailing slash configuration
trailingSlash: false,
// Optimize for consciousness visualization
experimental: {
optimizeCss: true,
},
// Proxy API requests to Python backend
async rewrites() {
return [
{
source: '/api/:path*',
destination: 'http://localhost:8000/api/:path*',
},
];
},
webpack(config, { dev }) {
config.resolve = config.resolve || {};
config.resolve.alias = config.resolve.alias || {};
config.resolve.alias['pino-pretty'] = path.resolve(__dirname, 'app/lib/pinoPrettyStub.cjs');
if (dev) {
config.watchOptions = config.watchOptions || {};
const ignored = config.watchOptions.ignored || [];
const ignoredList = Array.isArray(ignored) ? ignored : [ignored].filter(Boolean);
config.watchOptions.ignored = [
...ignoredList,
/C:\\(DumpStack\.log\.tmp|hiberfil\.sys|pagefile\.sys|swapfile\.sys)$/i
];
}
return config;
},
}
module.exports = nextConfig