fix: Remove 'www.' from host in RootLayout for cleaner domain handling

This commit is contained in:
AmirReza Jamali
2025-11-18 16:45:43 +03:30
parent c66fa85075
commit 5e842853e1
+1 -1
View File
@@ -77,7 +77,7 @@ export default async function RootLayout({
}: Readonly<{ }: Readonly<{
children: React.ReactNode; children: React.ReactNode;
}>) { }>) {
const domain = (await headers()).get("host"); const domain = (await headers()).get("host")?.replace("www.", "");
const contactInfo = [ const contactInfo = [
{ {