LoginSignup
12
10

More than 3 years have passed since last update.

Next.js + Docker でホットリロードが効かない

Last updated at Posted at 2020-08-13

問題

Next.jsアプリをDockerを使用して、devモードで立ち上げた際に、ホットリロードが実行されない

解決法

  • CHOKIDAR_USEPOLLING=trueを実行環境の環境変数に追加する
  • docker-composeを使用していればenvironmentで渡してあげれば良い

CreateReactAppではトラブルシューティングに乗っています
https://create-react-app.dev/docs/troubleshooting/

12
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
10