@bilal_swl
did you do npm run build on the server?
Laravel Vite Not Working on Heroku After Deployment: Failed to load resource: net::ERR CONNECTION REFUSED
I recently deployed a Laravel application on Heroku using Vite for asset management. However, after deployment, I encountered an issue where Vite is not working properly. In the browser console, I see an error pointing to https://0.0.0.0:9002/@vite/client, which seems to be an incorrect URL for Vite. My website URL is https://domain.xyz.
In my code, I am using @vite for asset loading, but it doesn't appear to be functioning correctly on Heroku. Everything works fine locally, but as soon as I deploy to Heroku, this issue arises. I Also add config variable in Heroku
Thanks for help me to solve problem.... The issue is that my vite is not working perfectly because in public folder a 'hot' name file exist which cause of this error. i delete hot file in public folder and issue is resolved now...
Please or to participate in this conversation.