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'], // 允许的主机名列表 }, });