import type { Metadata } from "next"; import { loadStatus } from "@/lib/site"; // Rendered per request from the backend's status; the published site is cached once it exists (§1). export const dynamic = "force-dynamic"; export async function generateMetadata(): Promise { const status = await loadStatus(); // Coming soon is a real page (HTTP 200) but never indexed (§5, decision 14). return status.mode === "coming-soon" ? { title: "Coming soon", robots: { index: false, follow: true } } : { title: "Home" }; } export default async function Home() { const status = await loadStatus(); if (status.mode === "coming-soon") { // The full Coming soon page (logo, service times, contact, links to Events) comes with the // church profile (§5). return (

Coming soon

Our new website is on its way.

); } return (

Welcome

Published version {status.version}. The templates come next (§3).

); }