import type { Metadata } from "next"; import { headers } from "next/headers"; import { notFound } from "next/navigation"; import GridLabClient from "./GridLabClient"; export const metadata: Metadata = { title: "Honeycomb Grid Lab (dev)", description: "Lokaler Varianten-Editor für das HiveGrid-Honeycomb.", robots: { index: false, follow: false }, }; export const dynamic = "force-dynamic"; export default async function GridLabPage() { const requestHeaders = await headers(); const host = ( requestHeaders.get("x-forwarded-host") || requestHeaders.get("host") || "" ).toLowerCase(); const enabled = process.env.NODE_ENV !== "production" || process.env.SHOW_PLAYGROUND === "1" || host.startsWith("staging.") || host.includes("localhost") || host.startsWith("127.0.0.1") || host.startsWith("[::1]"); if (!enabled) notFound(); return ; }