I'm helping someone get a Django + Vue app up and running and one issue we're running into is how to have the Vue app hot-reload while also being able to interact with the local Django server.
In production the Django server will serve the Vue app, and npm run build puts the Vue app's assets in the Django project's templates/ and static/ folders.
When we run the Django server (python manage.py runserver), the server is running at localhost:8000. When we run npm run serve (to get the benefits of hot reloading), the Vue app is being served at localhost:8080. If I do a GET request from the Vue app to /exampleEndpoint, it goes to localhost:8080/exampleEndpoint, thus not hitting the Django server.
What's the proper way to have the Vue app work with the Django app?
