diff --git a/vite.config.js b/vite.config.js index 7975f70..6e3a8c8 100644 --- a/vite.config.js +++ b/vite.config.js @@ -11,7 +11,11 @@ export default defineConfig({ }, server: { proxy: { - "/api": "http://localhost:8671/" + "/api": { + target: "http://localhost:8671", + changeOrigin: true, + rewrite: (path) => path.replace(/^\/api/, ""), + } } } }); \ No newline at end of file