/** * Server-side feature flag for the residential projects (Dự án) module. * * Kept in its own module (no `'use client'`) so that Server Components can * import it without Next.js treating it as a client boundary export. The * client-side hook lives in `@/lib/hooks/use-residential-projects-flag`. */ export function isResidentialProjectsEnabledServer(): boolean { const raw = process.env['NEXT_PUBLIC_FEATURE_RESIDENTIAL_PROJECTS']; if (raw == null || raw === '') return true; return !(raw === '0' || raw.toLowerCase() === 'false'); }