I have a brand new install of Laravel 9 ( with Sail over WSL2 ) and the home page working perfect.
Made a Breeze instalation (with Blade), npm install, npm run dev ...
Home page working fine... login can´t get CSS or JS from vite
I tried to put the "server" key on vite.config
server: {
host: 'localhost',
},
If I DON'T put the "server" key on vite.config
the login page tries to get 0.0.0.0:5173/resources/css/app.css
the localhost:5173 page works
if i put the "server" key on vite.config
the login page tries to get locahost:5173/resources/css/app.css
the localhost:5173 page do not work
In both cases the CSS is not loaded ... the network connection fails without any code HTTP code (net::ERR_EMPTY_RESPONDE) like theres is no server listening this port.