You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trigger any API call (e.g., fetch medication list)
Observe error in browser console and Vite terminal
Possible Fix: Vite proxy
Background
The API client uses relative URLs (/api/...), so requests go to the frontend's origin unless a proxy forwards them to the backend. In development, Vite runs a Node.js server that serves the React app and can proxy requests. In production, Vite compiles React into static files served by nginx or a CDN — the infrastructure handles API routing instead.
Activity
Merge pull request #447 from sahilds1/446-bugfix-local-dev-frontend-api