From f68cee8276a4b7eea01639a81887ec9f6eb45833 Mon Sep 17 00:00:00 2001 From: Momentry Studio Date: Sat, 31 Oct 2026 05:00:50 +0800 Subject: [PATCH] fix: add missing proxy routes for Core API endpoints - Added /api/v1/files, /api/v1/file/, /api/v1/jobs, /api/v1/bookmarks to port 3002 - Fixes 500 errors when MarkBase (port 8888) is not running - All Core API endpoints now correctly route to port 3002 --- vite.config.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index db63ef2..16127d6 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -64,6 +64,22 @@ export default defineConfig({ target: 'http://localhost:3002', changeOrigin: true, }, + '/api/v1/files': { + target: 'http://localhost:3002', + changeOrigin: true, + }, + '/api/v1/file/': { + target: 'http://localhost:3002', + changeOrigin: true, + }, + '/api/v1/jobs': { + target: 'http://localhost:3002', + changeOrigin: true, + }, + '/api/v1/bookmarks': { + target: 'http://localhost:3002', + changeOrigin: true, + }, '/api/v1': { target: 'http://localhost:8888', changeOrigin: true,