I have a vue project that uses Laravel api. I ran the npm build command and installed it on my server.
http ://[::1]:5173/resources/css/app.css GET net::ERR_CONNECTION_REFUSED
http ://[::1]:5173/@vite/client net GET::ERR_CONNECTION_REFUSED
http ://[::1]:5173/resources/js/app.js GET net::ERR_CONNECTION_REFUSED
I'm getting these errors. This is my first experience with Vue. I've read the forums and documentation and I think I'm doing it right but it doesn't work.
In conclusion, what I want to understand is how to create my project by running it locally and how to run it on the server.
@amphitrites Vite is still trying to use hot-reloading, so it sounds like you’ve committed and/or uploaded a public/hot file.
This file should not be in your repository, and should not be on your server, otherwise Laravel will try and use hot-reloading. If it is in your repository, you need to remove it, re-commit, and re-deploy: