From 276ab1e993aaedd730cea6d44c5cc5cc2b606daa Mon Sep 17 00:00:00 2001 From: hoangson Date: Tue, 11 Jun 2024 12:19:10 +0930 Subject: [PATCH] feat: rewrite --- vite.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/vite.config.js b/vite.config.js index c87f0f0..bc4fdae 100644 --- a/vite.config.js +++ b/vite.config.js @@ -9,6 +9,7 @@ export default defineConfig({ target: "http://115.146.85.153:8000", changeOrigin: true, secure: false, + rewrite: (path) => path.replace(/^\/api/, ''), }, }, },