diff --git a/vite.config.js b/vite.config.js index 2a4f9d3..f54b4f5 100644 --- a/vite.config.js +++ b/vite.config.js @@ -75,6 +75,7 @@ export default defineConfig({ '/api': { target: 'http://localhost:3000', changeOrigin: true, + rewrite: (path) => path.replace(/^\/api/, '') } } }