Is HMR throw WSL on Docker working only with server.watch: { usePolling: true } option enabled. It's really make my CPU to be crazy.
Anyone try to switch to the Webpack intead of Vite to solve this issue?
P.S. I don't use any 'servers' like nginx, just scaffold nuxt 3 app. And i tried to expose the porst like
ports:
- 3000:3000
- 24678:24678 # hmr fix
But in dev. console I get error: [GET] http://localhost:24678/_nuxt/ not found
UPD. As @DavidMaze said in the comments, the simplest solution is just use my host machine for nuxt and docker for other tools.
Just wanted to follow this up with a solution that worked for me, which was to expose port
24678in the Dockerfile and setting the ports incompose.yaml.Dockerfile
compose.yaml