mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-27 20:33:39 +03:00
92859bf8b9
Co-authored-by: Himself65 <himself65@outlook.com>
34 lines
862 B
JavaScript
34 lines
862 B
JavaScript
// @ts-check
|
|
import 'dotenv/config';
|
|
|
|
/**
|
|
* @type {import('@affine/env').BlockSuiteFeatureFlags}
|
|
*/
|
|
export const blockSuiteFeatureFlags = {
|
|
enable_database: true,
|
|
enable_slash_menu: true,
|
|
enable_edgeless_toolbar: true,
|
|
enable_block_hub: true,
|
|
enable_drag_handle: true,
|
|
enable_surface: true,
|
|
enable_linked_page: true,
|
|
};
|
|
|
|
/**
|
|
* @type {import('@affine/env').BuildFlags}
|
|
*/
|
|
export const buildFlags = {
|
|
enableTestProperties: process.env.ENABLE_TEST_PROPERTIES
|
|
? process.env.ENABLE_TEST_PROPERTIES === 'true'
|
|
: true,
|
|
enableLegacyCloud: process.env.ENABLE_LEGACY_PROVIDER
|
|
? process.env.ENABLE_LEGACY_PROVIDER === 'true'
|
|
: true,
|
|
enableBroadCastChannelProvider: Boolean(
|
|
process.env.ENABLE_BC_PROVIDER ?? '1'
|
|
),
|
|
enableDebugPage: Boolean(
|
|
process.env.ENABLE_DEBUG_PAGE ?? process.env.NODE_ENV === 'development'
|
|
),
|
|
};
|