Just to make it clear:
sail npm run build
works like a charm and compiles the js and adds it as it should and the page is rendered as it should. Witch is nice to see. But that's a bit timley to work with.
sail npm run dev
Returns the page but the includes:
http://localhost:5173/resources/js/app.js
http://localhost:5173/@vite/client
Returns empty responses with "ERR_EMPTY_RESPONSE" according to chrome,
I've tried to change the host dierctive to localhost or 127.0.0.1 or 0.0.0.0 without any sucess so I'm at a loss