mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-16 11:31:59 +03:00
16 lines
382 B
TypeScript
16 lines
382 B
TypeScript
import { setupGlobal } from '@affine/env/global';
|
|
|
|
import { getRuntimeConfig } from '../../packages/frontend/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();
|