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

timneutkens picture timneutkens  路  3Comments

olifante picture olifante  路  3Comments

irrigator picture irrigator  路  3Comments

knipferrc picture knipferrc  路  3Comments

flybayer picture flybayer  路  3Comments