From 268674070408acee4f9217fcf498a5f23cd5a225 Mon Sep 17 00:00:00 2001 From: awen Date: Thu, 17 Apr 2025 11:02:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=85=AC=E7=BD=91=E8=AE=BF?= =?UTF-8?q?=E9=97=AEminio=E8=B5=84=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/client.ts | 3 ++- vite.config.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/api/client.ts b/app/api/client.ts index a4607d3..a51b872 100644 --- a/app/api/client.ts +++ b/app/api/client.ts @@ -14,7 +14,8 @@ export type ApiResponse = { export type QueryParams = Record; // 获取 API 基础 URL -const API_BASE_URL = 'http://172.18.0.100:3000'; +// const API_BASE_URL = 'http://172.18.0.100:3000'; +const API_BASE_URL = 'http://nas.7bm.co:3000'; // const API_BASE_URL = 'http://172.16.0.119:9000/admin'; // export const API_BASE_URL = 'http://nas.7bm.co:3000'; diff --git a/vite.config.ts b/vite.config.ts index 457c172..b1697ac 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -24,6 +24,7 @@ export default defineConfig({ server: { host: '0.0.0.0', port: 5173, - open: true + open: true, + allowedHosts: ['nas.7bm.co', 'localhost', '127.0.0.1'], // 允许的主机名列表 }, });