DOCUMENTATION
CONFIGURATION
platform.config.ts — the single source of truth.
PLATFORM CONFIG
All feature flags, providers, and plan definitions live in one file generated by the CLI.
// platform.config.ts
export const platform = {
modules: {
auth: true,
payments: true,
ai: false,
teams: true,
},
auth: { provider: 'authjs' },
ui: { stylePreset: 'sharp', loginLayout: 'illustration' },
billing: { provider: 'stripe', plans: [...] },
} as const
export function featureEnabled(module: keyof typeof platform.modules) {
return platform.modules[module]
}