13
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

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/

13
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
13
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?