feat: improve build config (#2115)

This commit is contained in:
Himself65
2023-04-24 22:33:09 -05:00
committed by GitHub
parent 7e61708850
commit ad58b4d1e9
9 changed files with 83 additions and 37 deletions

View File

@@ -0,0 +1,2 @@
// do nothing
export {};

View File

@@ -1,3 +1,8 @@
import {
blockSuiteFeatureFlags,
buildFlags,
} from '../../apps/web/preset.config.mjs';
export default function getConfig() {
return {
publicRuntimeConfig: {
@@ -7,9 +12,8 @@ export default function getConfig() {
hash: 'UNKNOWN',
editorVersion: 'UNKNOWN',
serverAPI: 'http://127.0.0.1:3000/',
enableLegacyCloud: true,
enableBroadCastChannelProvider: true,
enableDebugPage: true,
editorFlags: blockSuiteFeatureFlags,
...buildFlags,
},
};
}