From 19e0c1fa7cd6d25b9044bd81ab7eb32308333821 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Fri, 5 Apr 2024 10:23:58 +0800 Subject: [PATCH] =?UTF-8?q?build(vite):=E8=B0=83=E6=95=B4=E5=8F=8D?= =?UTF-8?q?=E4=BB=A3=E9=85=8D=E7=BD=AE=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- license_ui/vite.config.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/license_ui/vite.config.ts b/license_ui/vite.config.ts index 39f73b9..fa17e0a 100644 --- a/license_ui/vite.config.ts +++ b/license_ui/vite.config.ts @@ -5,13 +5,12 @@ import { defineConfig } from "vite"; export default defineConfig({ plugins: [react()], server: { - port: 3000, proxy: { "/api": { - target: `http://127.0.0.1:3000`, + target: `http://127.0.0.1:8080`, changeOrigin: true, secure: false, - rewrite: (path) => path.replace(/^\/api/, proxyHost.Path), + rewrite: (path) => path.replace(/^\/api/, ""), }, }, },