Point the Vite dev proxy at the API's default port, 3001

It pointed at 5173, Vite's own port, so a plain pnpm dev in both
directories never reached the API.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-09-28 23:41:12 -05:00
parent 8958737b63
commit 1c94ffb281

View file

@ -14,14 +14,14 @@ export default defineConfig({
server: {
proxy: {
"/api": {
target: "http://127.0.0.1:5173",
target: "http://127.0.0.1:3001",
changeOrigin: false,
xfwd: true,
},
// Uploaded images. nginx serves these in production; in dev
// the API does, so they go to the same place as /api.
"/uploads": {
target: "http://127.0.0.1:5173",
target: "http://127.0.0.1:3001",
changeOrigin: false,
},
},