-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
25 lines (22 loc) · 686 Bytes
/
next.config.js
File metadata and controls
25 lines (22 loc) · 686 Bytes
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
/** @type {import('next').NextConfig} */
const nextConfig = {
// Webpack configuration for Windows compatibility
webpack: (config, { dev, isServer }) => {
if (dev) {
// Windows-specific file watching configuration
config.watchOptions = {
poll: 1000, // Check for changes every second
aggregateTimeout: 300, // Delay before rebuilding
ignored: ['**/node_modules/**', '**/.git/**', '**/.next/**'],
}
}
return config
},
// Turbopack configuration to silence warnings
turbopack: {},
// Reduce concurrent operations
experimental: {
workerThreads: false,
},
}
module.exports = nextConfig