From 05cc160311be9ff1b11b57e0cc90fdb7a5b5b4b2 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Tue, 6 May 2025 13:16:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=20Vite=20=E9=85=8D=E7=BD=AE=E4=B8=AD?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=96=B0=E7=9A=84=E4=BB=A3=E7=90=86=E8=A7=84?= =?UTF-8?q?=E5=88=99=EF=BC=8C=E6=94=AF=E6=8C=81=20'/plugin=5Fstatic'=20?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E7=9A=84=E8=AF=B7=E6=B1=82=E8=BD=AC=E5=8F=91?= =?UTF-8?q?=E8=87=B3=E6=9C=AC=E5=9C=B0=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index 2bbaebac..c2965ffe 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -199,6 +199,12 @@ export default defineConfig({ secure: false, cookieDomainRewrite: 'localhost', }, + '/plugin_static': { + target: 'http://localhost:3001', + changeOrigin: true, + secure: false, + rewrite: path => path.replace(/^\/plugin_static/, '/api/v1/plugin/file'), + }, }, }, css: {