mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-08 02:23:43 +00:00
15 lines
414 B
TypeScript
15 lines
414 B
TypeScript
import { setupGlobal } from '@affine/env/global';
|
|
import { getBuildConfig } from '@affine-tools/utils/build-config';
|
|
import { Package } from '@affine-tools/utils/workspace';
|
|
|
|
globalThis.BUILD_CONFIG = getBuildConfig(new Package('@affine/web'), {
|
|
mode: 'development',
|
|
channel: 'canary',
|
|
});
|
|
|
|
if (typeof window !== 'undefined') {
|
|
window.location.search = '?prefixUrl=http://127.0.0.1:3010/';
|
|
}
|
|
|
|
setupGlobal();
|