mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
build: update build config (#2967)
This commit is contained in:
@@ -19,7 +19,6 @@ export const blockSuiteFeatureFlags = {
|
||||
*/
|
||||
const buildPreset = {
|
||||
stable: {
|
||||
enableAllPageSaving: false,
|
||||
enablePlugin: false,
|
||||
enableTestProperties: false,
|
||||
enableBroadcastChannelProvider: true,
|
||||
@@ -36,7 +35,6 @@ const buildPreset = {
|
||||
internal: {},
|
||||
// canary will be aggressive and enable all features
|
||||
canary: {
|
||||
enableAllPageSaving: true,
|
||||
enablePlugin: true,
|
||||
enableTestProperties: true,
|
||||
enableBroadcastChannelProvider: true,
|
||||
@@ -58,7 +56,7 @@ buildPreset.internal = buildPreset.stable;
|
||||
const currentBuild = process.env.BUILD_TYPE || 'stable';
|
||||
|
||||
if (process.env.CI && !process.env.BUILD_TYPE) {
|
||||
throw new Error('BUILD_ENV is required in CI');
|
||||
throw new Error('BUILD_TYPE is required in CI');
|
||||
}
|
||||
|
||||
const currentBuildPreset = buildPreset[currentBuild];
|
||||
@@ -67,9 +65,6 @@ const environmentPreset = {
|
||||
enablePlugin: process.env.ENABLE_PLUGIN
|
||||
? process.env.ENABLE_PLUGIN === 'true'
|
||||
: currentBuildPreset.enablePlugin,
|
||||
enableAllPageSaving: process.env.ENABLE_ALL_PAGE_SAVING
|
||||
? process.env.ENABLE_ALL_PAGE_FILTER === 'true'
|
||||
: currentBuildPreset.enableAllPageSaving,
|
||||
enableTestProperties: process.env.ENABLE_TEST_PROPERTIES
|
||||
? process.env.ENABLE_TEST_PROPERTIES === 'true'
|
||||
: currentBuildPreset.enableTestProperties,
|
||||
|
||||
Reference in New Issue
Block a user