diff --git a/backend/playwright.config.js b/backend/playwright.config.js new file mode 100644 index 0000000..5cccb92 --- /dev/null +++ b/backend/playwright.config.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const test_1 = require("@playwright/test"); +exports.default = (0, test_1.defineConfig)({ + testDir: './test', + testMatch: '*.browser.spec.ts', + timeout: 30000, + use: { + baseURL: 'http://localhost:3006', + }, +}); +//# sourceMappingURL=playwright.config.js.map \ No newline at end of file diff --git a/backend/playwright.config.js.map b/backend/playwright.config.js.map new file mode 100644 index 0000000..cc081da --- /dev/null +++ b/backend/playwright.config.js.map @@ -0,0 +1 @@ +{"version":3,"file":"playwright.config.js","sourceRoot":"","sources":["playwright.config.ts"],"names":[],"mappings":";;AAAA,2CAA+C;AAE/C,kBAAe,IAAA,mBAAY,EAAC;IAC1B,OAAO,EAAE,QAAQ;IACjB,SAAS,EAAE,mBAAmB;IAC9B,OAAO,EAAE,KAAK;IACd,GAAG,EAAE;QACH,OAAO,EAAE,uBAAuB;KACjC;CACF,CAAC,CAAA"} \ No newline at end of file diff --git a/zhiyin-app/.env.production b/zhiyin-app/.env.production index 1e0a299..529d42e 100644 --- a/zhiyin-app/.env.production +++ b/zhiyin-app/.env.production @@ -1,4 +1,4 @@ # 生产环境变量 -VITE_API_BASE_URL=https://zhiyinwx.yzrcloud.cn/api +VITE_API_BASE_URL=https://zhiyin.yzrcloud.cn/api VITE_APP_NAME=AI磁场 -VITE_PROD_API_HOST=https://zhiyinwx.yzrcloud.cn +VITE_PROD_API_HOST=https://zhiyin.yzrcloud.cn diff --git a/zhiyin-app/src/config.ts b/zhiyin-app/src/config.ts index 259f3b9..da3fd89 100644 --- a/zhiyin-app/src/config.ts +++ b/zhiyin-app/src/config.ts @@ -88,7 +88,7 @@ export const API_ENDPOINTS = { }, } as const -const PROD_API_HOST = import.meta.env.VITE_PROD_API_HOST || 'https://zhiyinwx.yzrcloud.cn' +const PROD_API_HOST = import.meta.env.VITE_PROD_API_HOST || 'https://zhiyin.yzrcloud.cn' const DEV_API_HOST = 'http://localhost:3006' let API_HOST: string