// Site-wide server config. // Coming-soon gate. While on, every route renders the pre-launch holding // page instead of the live site. The production deploy is gated by // default; preview deploys and local dev show the real site so the studio // can keep building. Override in any environment with the COMING_SOON env // var ("true" forces the holding page, "false" forces the live site). function resolveComingSoon(): boolean { const flag = process.env.COMING_SOON; if (flag === 'true') return true; if (flag === 'false') return false; return (process.env.VERCEL_ENV ?? process.env.CLOUDFLARE_DEPLOYMENT_ENV) === 'production'; } export const COMING_SOON = resolveComingSoon();