Is this plug-in supposed to work in a docker container too?
How should my vite.config.ts look like?
Also what port(s) should I map in my docker-compose file?
Is server.hmr option required/preferred in this scenario?
I have been struggling with it for several hours. In the best case scenario I was getting NET::ERR_CERT_AUTHORITY_INVALID in the browser when trying to access vite dev server.
In the current setup, I am:
Using -- host option with the dev script.
Running vite server on port 3000.
Mapping port 3000 to 3005 of the host machine in my docker-compose file
But I cannot access the Vite server in a host browser using any of 127.0.0.1, localhost and 0.0.0.0.
Is this plug-in supposed to work in a docker container too?
vite.config.ts
look like?docker-compose
file?server.hmr
option required/preferred in this scenario?I have been struggling with it for several hours. In the best case scenario I was getting
NET::ERR_CERT_AUTHORITY_INVALID
in the browser when trying to access vite dev server.In the current setup, I am:
-- host
option with thedev
script.docker-compose file
But I cannot access the Vite server in a host browser using any of
127.0.0.1
,localhost
and0.0.0.0
.