api替换

This commit is contained in:
谢宇宁
2026-11-07 11:18:11 +07:00
parent 37411fcada
commit 58f097fe27
9 changed files with 22 additions and 17 deletions
+3 -3
View File
@@ -56,11 +56,11 @@ sharedDependencies["../site-navigation"] = await compile("../site-navigation", {
test("development uses its configured domain and supports legacy overrides", () => {
delete environment.UPSTREAM_API_URL;
delete environment.API_BASE_URL;
assert.equal(config.getApiBaseUrl(), "http://172.104.181.99:26792");
assert.equal(config.getApiBaseUrl(), "https://webhgcapi.mfcg.me");
environment.APP_ENV = "test";
assert.equal(config.getApiBaseUrl(), "http://172.104.181.99:26792");
assert.equal(config.getApiBaseUrl(), "https://webhgcapi.mfcg.me");
environment.APP_ENV = "production";
assert.equal(config.getApiBaseUrl(), "http://139.162.49.252:21040");
assert.equal(config.getApiBaseUrl(), "https://webhgcapi.mfcg.me");
delete environment.APP_ENV;
environment.API_BASE_URL = "https://legacy-api.example/";
assert.equal(config.getApiBaseUrl(), "https://legacy-api.example");