From 60ea5abe459d9d0b31c661ecf4b595083c38a8a9 Mon Sep 17 00:00:00 2001 From: abearxiong Date: Wed, 28 May 2025 20:20:14 +0800 Subject: [PATCH] fix: config --- astro.config.mjs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 118abb8..969d65a 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -16,10 +16,12 @@ let target = process.env.VITE_API_URL || 'https://localhost:51015'; const apiProxy = { target: target, changeOrigin: true, ws: true, rewriteWsOrigin: true, secure: false, cookieDomainRewrite: 'localhost' }; let proxy = { '/root/center/': { - target: `${target}/root/center/`, + target: `${target}`, + secure: false, }, '/user/login/': { - target: `${target}/user/login/`, + target: `${target}`, + secure: false, }, '/api': apiProxy, '/client': apiProxy,