I have successfully deployed my full stack react vite project but am getting Failed to load resource: net::ERR_CONNECTION_REFUSED error . I have also not used .env files.
When I run my app locally and then try to access the deployed site it works fine but, when I close the local one, the deployed site breaks giving this error in my console
The error is coming from backend .And the the err of connection refused is only log showing in the console. So ,basically after deployment backend is not connecting to the frontend .But is perfectly working locally.