DEV Community

Discussion on: Hot Module Reloading with Next.js Docker development environment in 4 steps

Collapse
 
adamclark64 profile image
adam clark

do you have an example? this is not reloading or doing HMR. seems the only change is the next config update

  webpackDevMiddleware: config => {
    config.watchOptions = {
      poll: 1000,
      aggregateTimeout: 300,
    }
    return config
  },
Collapse
 
adamclark64 profile image
adam clark • Edited

found it here github.com/CaptainChemist/blog-pri.... and it was also the volumes setup in docker-compose. mine is not the same as yours but very helpful showing how you map frontend to app. 🙏