feat: improve build config (#2115)

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

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
// do nothing
export {};
+7 -3
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,
},
};
}