Skip to content

Instantly share code, notes, and snippets.

@Sankame
Last active June 16, 2024 07:59
Show Gist options
  • Save Sankame/516efc1c20c0fd8f8fda8ffc1c3f27d5 to your computer and use it in GitHub Desktop.
Save Sankame/516efc1c20c0fd8f8fda8ffc1c3f27d5 to your computer and use it in GitHub Desktop.
Next.js設定ファイルの値変更
module.exports = {
reactStrictMode: true,
webpackDevMiddleware: config => {
config.watchOptions = {
//小さな値にすると、ポーリングの頻度が上がるので、重くなるっぽい。
//poll: 800,
poll: 5000,
aggregateTimeout: 300,
ignored: [ '**/node_modules/**', '**/.git/**', '**/.next/**' ]
}
return config
},
}
@Sankame
Copy link
Author

Sankame commented Jun 16, 2024

(2024/06/16) ignored を追加。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment