#How to stop vite HOT file from being generated automatically?
10 messages · Page 1 of 1 (latest)
That file is used by Laravel when you run the Vite dev server. It's required for that to work properly.
If you deploy your app you'd run a build, not use the dev command
When I open the site I get a blank page unless I delete thar file. (I'm running SSR)
If you delete that file, npm run dev does nothing anymore, Laravel will then fallback to the assets that were built previously. So, open devtools in your browser and look for errors
I seee, I get hit with a lot of cross origin site errors from vite and react:
The Same Origin Policy disallows reading the remote resource at http://[::1]:5173/@vite/client
What's your setup? How are you serving the app locally? Do you use https?
Serving it through docker under the same container and via http
Then you'd also need to open that port
I do as far as I am aware, I have it defined in my ports in the compose file:
ports:
- "8000:8000"
- "5173:5173"
- "3000:3000"
Adding the --host flag to the end of the dev command fixed it 😄