While deploying my Laravel application on a DigitalOcean cloud server using LAMP, I encountered an issue with VueJS integration. The app successfully posts data from the database to a URL called /proapi and fetches it using Axios when running on localhost:8000. However, upon deployment to the live IP address, I received the following error:
OPTIONS http://localhost:8000/proapi/ net::ERR_CONNECTION_REFUSED
Uncaught (in promise) Error: Network Error
I initially suspected the .env file as the source of the problem and changed the APP_URL to match the live IP address. Unfortunately, this adjustment did not resolve the error. Where should I look to update the URL in order to fix this issue?