feat(core): build config for ios android (#8555)

This commit is contained in:
EYHN
2024-10-21 05:39:04 +00:00
parent d1783b6f8c
commit db374f7feb
10 changed files with 29 additions and 12 deletions
@@ -5,7 +5,7 @@ import { fromPromise, Service } from '@toeverything/infra';
import { BackendError, NetworkError } from '../error';
export function getAffineCloudBaseUrl(): string {
if (BUILD_CONFIG.isElectron) {
if (BUILD_CONFIG.isElectron || BUILD_CONFIG.isIOS || BUILD_CONFIG.isAndroid) {
return BUILD_CONFIG.serverUrlPrefix;
}
const { protocol, hostname, port } = window.location;