Closed kh-ac closed 5 months ago
That env
is required to be /api
because otherwise it breaks docker image runs pulled from the remote and works for both local and remote machines.
If you are developing then the patch to apply here is to override VITE_API_BASE
using a frontend/.env
file with the variable set to VITE_API_BASE="http://localhost:3001/api"
. This will enable local development now.
Its easier to patch and instruct for local development than break all the other docker images for people who are running it on a remote ip.
Pull Request Type
Relevant Issues
What is in this change?
API_BASE is set to "http://127.0.0.1:3001/api" instead of "/api" because it caused errors when trying to send requests to the backend. Thus, the frontend will not be working as shown below:![Screenshot from 2024-01-11 14-58-36](https://github.com/Mintplex-Labs/vector-admin/assets/93795387/62cd0cc8-ca18-4dd9-8877-56e6356416c1)
Additional Information
Developer Validations
yarn lint
from the root of the repo & committed changes