forked from Michael4343/synapse_v0
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.dev.js
More file actions
51 lines (44 loc) · 1.28 KB
/
Copy pathnext.config.dev.js
File metadata and controls
51 lines (44 loc) · 1.28 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
51
/** @type {import('next').NextConfig} */
const nextConfig = {
// Ultra-lightweight development configuration
// Disable all optimizations for fastest compilation
typescript: {
ignoreBuildErrors: true,
},
eslint: {
ignoreDuringBuilds: true,
},
// Minimal experimental features
experimental: {
// Only essential features
},
// Webpack optimizations for development speed
webpack: (config, { dev }) => {
if (dev) {
// Disable all optimizations
config.optimization.minimize = false
config.optimization.splitChunks = false
config.optimization.removeAvailableModules = false
config.optimization.removeEmptyChunks = false
config.optimization.sideEffects = false
// Fast refresh only for changed files
config.watchOptions = {
poll: 2000,
aggregateTimeout: 500,
ignored: ['**/node_modules', '**/.next'],
}
// Reduce module resolution overhead
config.resolve.symlinks = false
config.resolve.cacheWithContext = false
}
return config
},
// Development-only settings
...(process.env.NODE_ENV === 'development' && {
// Disable image optimization for faster builds
images: {
unoptimized: true,
},
}),
}
module.exports = nextConfig