2024-03-19 10:48:56 +03:00
|
|
|
import { getRuntimeConfig } from '@affine/cli/src/webpack/runtime-config';
|
2023-06-28 14:19:19 +03:00
|
|
|
import { setupGlobal } from '@affine/env/global';
|
|
|
|
|
2024-08-26 15:22:52 +03:00
|
|
|
process.env.RUNTIME_CONFIG = JSON.stringify(
|
|
|
|
getRuntimeConfig({
|
2024-09-10 07:03:58 +03:00
|
|
|
distribution: 'web',
|
2024-08-26 15:22:52 +03:00
|
|
|
mode: 'development',
|
|
|
|
channel: 'canary',
|
|
|
|
static: false,
|
|
|
|
})
|
|
|
|
);
|
2023-07-18 19:53:10 +03:00
|
|
|
|
2023-07-30 09:35:00 +03:00
|
|
|
if (typeof window !== 'undefined') {
|
|
|
|
window.location.search = '?prefixUrl=http://127.0.0.1:3010/';
|
|
|
|
}
|
|
|
|
|
2023-06-28 14:19:19 +03:00
|
|
|
setupGlobal();
|