fix: prediction proxy rewrite 경로 수정

/api/prediction → rewrite: '' → '/api'
기존: /api/prediction/v1/... → /v1/... (404 - FastAPI 라우트 불일치)
수정: /api/prediction/v1/... → /api/v1/... (정상 매칭)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
htlee 2026-03-31 09:07:33 +09:00
부모 8631546142
커밋 dddb978dea

파일 보기

@ -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',