From 1c94ffb28101bcd6bf311acf0cad0e4fde40def1 Mon Sep 17 00:00:00 2001 From: Zaldimmar Date: Mon, 28 Sep 2026 23:41:12 -0500 Subject: [PATCH] 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 --- vite.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index b3a7bed..064bc3f 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -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, }, },