mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-23 13:29:02 +08:00
feat: init ios-bridge
This commit is contained in:
@@ -10,6 +10,9 @@ import { gqlFetcherFactory } from './fetcher';
|
||||
setupGlobal();
|
||||
|
||||
export function getBaseUrl(): string {
|
||||
if ((globalThis as any)['__AFFINE_CLOUD_BASE_URL__']) {
|
||||
return (globalThis as any)['__AFFINE_CLOUD_BASE_URL__'];
|
||||
}
|
||||
if (environment.isDesktop) {
|
||||
return runtimeConfig.serverUrlPrefix;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user