mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-23 05:42:30 +03:00
16 lines
375 B
TypeScript
16 lines
375 B
TypeScript
import { getBuildConfig } from '@affine/cli/src/webpack/runtime-config';
|
|
import { setupGlobal } from '@affine/env/global';
|
|
|
|
globalThis.BUILD_CONFIG = getBuildConfig({
|
|
distribution: 'web',
|
|
mode: 'development',
|
|
channel: 'canary',
|
|
static: false,
|
|
});
|
|
|
|
if (typeof window !== 'undefined') {
|
|
window.location.search = '?prefixUrl=http://127.0.0.1:3010/';
|
|
}
|
|
|
|
setupGlobal();
|