AFFiNE/apps/web/preset.config.mjs

16 lines
529 B
JavaScript
Raw Normal View History

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'
),
2023-03-23 08:47:07 +03:00
enableSubpage: Boolean(process.env.ENABLE_SUBPAGE),
};
export default config;