Closed fietensen closed 3 months ago
When executing npm run dev api calls are not available since the application is not yet bundled. If we add the "proxy" property to the package.json, we can proxy api calls to the backend that is running simultaneously.
npm run dev
package.json
CORS will probably not allow this, we should also allow CORS for vite (localhost:5173) when on development profile
To do this, though, we have to add an endpoint first. Otherwise this is completely redundant
When executing
npm run dev
api calls are not available since the application is not yet bundled. If we add the "proxy" property to thepackage.json
, we can proxy api calls to the backend that is running simultaneously.