From dddb978dea52a737ae8351cf103d2b327c9b3788 Mon Sep 17 00:00:00 2001 From: htlee Date: Tue, 31 Mar 2026 09:07:33 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20prediction=20proxy=20rewrite=20=EA=B2=BD?= =?UTF-8?q?=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit /api/prediction → rewrite: '' → '/api' 기존: /api/prediction/v1/... → /v1/... (404 - FastAPI 라우트 불일치) 수정: /api/prediction/v1/... → /api/v1/... (정상 매칭) Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/vite.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 928304b..2baa4a4 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -118,7 +118,7 @@ export default defineConfig(({ mode }): UserConfig => ({ '/api/prediction': { target: 'http://localhost:8001', changeOrigin: true, - rewrite: (path) => path.replace(/^\/api\/prediction/, ''), + rewrite: (path) => path.replace(/^\/api\/prediction/, '/api'), }, '/ollama': { target: 'http://localhost:11434',