oaregithub / oare_mono

1 stars 0 forks source link

added support for network dev access #1702

Closed hbludworth closed 1 year ago

hbludworth commented 1 year ago

Previously, when accessing the development server from another device on the network (using local IP address and port 8080), the Vue frontend would appear as expected. However, things didn't work well because all requests to the backend were hardcoded to go to localhost:8081, which was obviously not running on the client device accessing the dev server over the network. This PR updates the axios host so that requests to the backend take into account the hostname of the client window location. Thus, backend requests will correctly route themselves to the dev server on the network.