Skip to content

Commit b030e68

Browse files
committed
Add the watch option for the development setup
1 parent cc8e515 commit b030e68

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

next.config.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ await import('./env.mjs');
33
/** @type {import('next').NextConfig} */
44
const config = {
55
reactStrictMode: true,
6+
swcMinify: true,
7+
webpack: (config, context) => {
8+
config.watchOptions = {
9+
poll: 1000,
10+
aggregateTimeout: 300
11+
}
12+
return config
13+
},
614
async redirects() {
715
return [
816
{

0 commit comments

Comments
 (0)