From ea32c749b1a456877c5ab67c8f1e289a54d1e242 Mon Sep 17 00:00:00 2001 From: lightning Date: Sat, 29 Jun 2024 13:05:21 +0000 Subject: [PATCH] feat: add new domain notification --- src/app/page.tsx | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 07a8e2a..15b7d38 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,10 +1,34 @@ +import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"; + import { Badge } from "@/components/ui/badge"; import ChatBox from "@/components/chatbox"; +import { Globe } from "lucide-react"; +import { headers } from "next/headers"; export default function Home() { + const headersList = headers(); + const host = headersList.get("host"); + return (
-
+
+ {host === "chromeai.pages.dev" && ( + + + New Domain + + Our new domain is{" "} + + chromeai.co + + . + + + )} +