Skip to content

Instantly share code, notes, and snippets.

@Sankame
Created May 21, 2022 10:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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,
}
return config
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment