diff --git a/web/vite.config.ts b/web/vite.config.ts index 164900052..6acc15c0c 100644 --- a/web/vite.config.ts +++ b/web/vite.config.ts @@ -8,7 +8,12 @@ export default defineConfig({ }, server: { proxy: { - '/api': { target: 'http://uftos-api:8080', changeOrigin: true, ws: true }, + '/api': { + target: 'http://uftos-api:8080', + changeOrigin: true, + ws: true, + rewrite: (path) => path.replace(/^\/api/, ''), + }, }, }, });