AFFiNE/scripts/setup/global.ts

16 lines
382 B
TypeScript
Raw Normal View History

import { setupGlobal } from '@affine/env/global';
import { getRuntimeConfig } from '../../packages/frontend/core/.webpack/runtime-config';
2023-07-18 19:53:10 +03:00
globalThis.runtimeConfig = getRuntimeConfig({
distribution: 'browser',
mode: 'development',
channel: 'canary',
});
2023-07-30 09:35:00 +03:00
if (typeof window !== 'undefined') {
window.location.search = '?prefixUrl=http://127.0.0.1:3010/';
}
setupGlobal();