mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-14 21:02:50 +03:00
332cd3b380
This pr is trying to split `web` and `electron` entries from `core`. It allows more platform-related optimization to be addressed in each entry. We should remove all browser/electron only codes from `core` eventually, this is the very first step for that.
15 lines
367 B
TypeScript
15 lines
367 B
TypeScript
import { getRuntimeConfig } from '@affine/cli/src/webpack/runtime-config';
|
|
import { setupGlobal } from '@affine/env/global';
|
|
|
|
globalThis.runtimeConfig = getRuntimeConfig({
|
|
distribution: 'browser',
|
|
mode: 'development',
|
|
channel: 'canary',
|
|
});
|
|
|
|
if (typeof window !== 'undefined') {
|
|
window.location.search = '?prefixUrl=http://127.0.0.1:3010/';
|
|
}
|
|
|
|
setupGlobal();
|