diff --git a/studio/vite.config.ts b/studio/vite.config.ts index 5aaf6d49..812c0cbe 100644 --- a/studio/vite.config.ts +++ b/studio/vite.config.ts @@ -21,6 +21,21 @@ export default defineConfig({ changeOrigin: true, rewrite: (path) => path.replace(/^\/api\/gallery/, '/gallery'), }, + '/api/svc/diffusion': { + target: 'http://localhost:8002', + changeOrigin: true, + rewrite: (path) => path.replace(/^\/api\/svc\/diffusion/, ''), + }, + '/api/svc/identity': { + target: 'http://localhost:8009', + changeOrigin: true, + rewrite: (path) => path.replace(/^\/api\/svc\/identity/, ''), + }, + '/api/svc/classifier': { + target: 'http://localhost:8012', + changeOrigin: true, + rewrite: (path) => path.replace(/^\/api\/svc\/classifier/, ''), + }, }, }, });