mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 05:14:54 +00:00
refactor: avoid runtime config object (#8202)
This commit is contained in:
@@ -11,7 +11,7 @@ setupGlobal();
|
||||
|
||||
export function getBaseUrl(): string {
|
||||
if (environment.isElectron) {
|
||||
return runtimeConfig.serverUrlPrefix;
|
||||
return BUILD_CONFIG.serverUrlPrefix;
|
||||
}
|
||||
if (typeof window === 'undefined') {
|
||||
// is nodejs
|
||||
|
||||
Reference in New Issue
Block a user