Next.js: I have mounted my volume and node_modules but hot code reloading does not work in docker container

Created on 9 Jul 2019  路  2Comments  路  Source: vercel/next.js

Hi,

I have mounted my volume and node_modules but hot code reloading does not work in docker container.

I am wondering what might cause this issue?

Thanks

Most helpful comment

File watching doesn't work in Docker -- this is a known limitation of Docker.

You can try to set the env variable CHOKIDAR_USEPOLLING=true to fix this.

All 2 comments

File watching doesn't work in Docker -- this is a known limitation of Docker.

You can try to set the env variable CHOKIDAR_USEPOLLING=true to fix this.

File watching doesn't work in Docker -- this is a known limitation of Docker.

You can try to set the env variable CHOKIDAR_USEPOLLING=true to fix this.

It works like a charm.

Thank you!!!
Jason

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wagerfield picture wagerfield  路  3Comments

swrdfish picture swrdfish  路  3Comments

YarivGilad picture YarivGilad  路  3Comments

rauchg picture rauchg  路  3Comments

havefive picture havefive  路  3Comments