mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-02 02:12:42 +03:00
15 lines
387 B
JavaScript
15 lines
387 B
JavaScript
import 'dotenv/config';
|
|
|
|
const config = {
|
|
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'
|
|
),
|
|
};
|
|
export default config;
|