mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-23 10:42:00 +03:00
01a686dc28
Co-authored-by: JimmFly <yangjinfei001@gmail.com>
17 lines
601 B
JavaScript
17 lines
601 B
JavaScript
import 'dotenv/config';
|
|
|
|
const config = {
|
|
enableIndexedDBProvider: Boolean(process.env.ENABLE_IDB_PROVIDER ?? '1'),
|
|
enableBroadCastChannelProvider: Boolean(
|
|
process.env.ENABLE_BC_PROVIDER ?? '1'
|
|
),
|
|
prefetchWorkspace: Boolean(process.env.PREFETCH_WORKSPACE ?? '1'),
|
|
exposeInternal: Boolean(process.env.EXPOSE_INTERNAL ?? '1'),
|
|
enableDebugPage: Boolean(
|
|
process.env.ENABLE_DEBUG_PAGE ?? process.env.NODE_ENV === 'development'
|
|
),
|
|
enableSubpage: Boolean(process.env.ENABLE_SUBPAGE ?? '1'),
|
|
enableChangeLog: Boolean(process.env.ENABLE_CHANGELOG ?? '1'),
|
|
};
|
|
export default config;
|