mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
fix(core): avoid expand runtime config everywhere used (#7972)
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
import { getRuntimeConfig } from '@affine/cli/src/webpack/runtime-config';
|
||||
import { setupGlobal } from '@affine/env/global';
|
||||
|
||||
globalThis.runtimeConfig = getRuntimeConfig({
|
||||
distribution: 'browser',
|
||||
mode: 'development',
|
||||
channel: 'canary',
|
||||
static: false,
|
||||
});
|
||||
process.env.RUNTIME_CONFIG = JSON.stringify(
|
||||
getRuntimeConfig({
|
||||
distribution: 'browser',
|
||||
mode: 'development',
|
||||
channel: 'canary',
|
||||
static: false,
|
||||
})
|
||||
);
|
||||
|
||||
if (typeof window !== 'undefined') {
|
||||
window.location.search = '?prefixUrl=http://127.0.0.1:3010/';
|
||||
|
||||
Reference in New Issue
Block a user