From ed60b8424fb34c4d00c699eb44c8f2003e502401 Mon Sep 17 00:00:00 2001 From: karlcarlo Date: Fri, 23 Jan 2026 11:29:47 +0800 Subject: [PATCH] =?UTF-8?q?chore(config):=20=E4=BF=AE=E6=94=B9=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=99=A8=E7=AB=AF=E5=8F=A3=E5=B9=B6=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=85=81=E8=AE=B8=E7=9A=84=E4=B8=BB=E6=9C=BA=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将开发服务器端口从3000改为3010 - 添加allowedHosts配置,允许mp.yizhezhe.com访问 - 保持host为0.0.0.0以支持外部访问 --- vite.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index 0abaa5d..69b1949 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -7,8 +7,9 @@ export default defineConfig(({ mode }) => { return { base: '/app_02/', server: { - port: 3000, + port: 3010, host: '0.0.0.0', + allowedHosts: ['mp.yizhezhe.com'], }, plugins: [react()], define: {