整体UI修改
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
export const DEFAULT_API_BASE_URL = 'http://172.104.181.99:21022';
|
||||
export const DEFAULT_API_BASE_URL = 'https://webhgcgapi.mfcg.me';
|
||||
export const UPSTREAM_HOP_HEADER = 'x-91dj-upstream';
|
||||
|
||||
export interface ApiRequestContext {
|
||||
@@ -7,9 +7,7 @@ export interface ApiRequestContext {
|
||||
}
|
||||
|
||||
function configuredApiUrl(): string {
|
||||
const environment = process.env.APP_ENV || (process.env.NODE_ENV === 'production' ? 'production' : 'development');
|
||||
const fallback = environment === 'production' ? 'http://172.104.56.28:26125' : DEFAULT_API_BASE_URL;
|
||||
return (process.env.UPSTREAM_API_URL ?? process.env.API_BASE_URL ?? fallback).trim();
|
||||
return (process.env.UPSTREAM_API_URL ?? process.env.API_BASE_URL ?? DEFAULT_API_BASE_URL).trim();
|
||||
}
|
||||
|
||||
export function usesCurrentApiOrigin(): boolean {
|
||||
|
||||
Reference in New Issue
Block a user