AFFiNE/scripts/setup/global.ts
2023-07-30 06:35:00 +00:00

16 lines
369 B
TypeScript

import { setupGlobal } from '@affine/env/global';
import { getRuntimeConfig } from '../../apps/core/.webpack/runtime-config';
globalThis.runtimeConfig = getRuntimeConfig({
distribution: 'browser',
mode: 'development',
channel: 'canary',
});
if (typeof window !== 'undefined') {
window.location.search = '?prefixUrl=http://127.0.0.1:3010/';
}
setupGlobal();