diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 75c1474..c242542 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -7,10 +7,15 @@ export default defineConfig({ base: '/xray-checker/routing/', plugins: [vue()], server: { - port: 5173, - proxy: { - '/api': { target, changeOrigin: false }, + port: 5173, + proxy: { + '/xray-checker/routing/api': { + target, + changeOrigin: false, + rewrite: path => + path.replace(/^\/xray-checker\/routing/, ''), }, }, +},, test: { environment: 'node' }, }) \ No newline at end of file