Fix Lighthouse SEO metadata issues

This commit is contained in:
AmirReza Jamali
2026-06-17 13:51:49 +03:30
parent 635ca32b3a
commit 85d1fbb20d
11 changed files with 106 additions and 15 deletions
+3 -6
View File
@@ -1,6 +1,5 @@
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import { headers } from "next/headers";
import Image from "next/image";
import Link from "next/link";
import { Suspense } from "react";
@@ -19,7 +18,7 @@ const geistMono = Geist_Mono({
});
export const metadata: Metadata = {
metadataBase: new URL("https://opplens.com"),
metadataBase: new URL("https://opplenz.com"),
title: "Opp lens - AI-Powered Tender Management",
description:
"Democratizing Tender Access for SMEs with AI-Powered Tender Management.",
@@ -81,13 +80,11 @@ function ContactInfo({
);
}
export default async function RootLayout({
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
const domain = (await headers()).get("host")?.replace("www.", "");
const contactInfo = [
{
icon: "/Message.svg",
@@ -128,7 +125,7 @@ export default async function RootLayout({
</Link>
</section>
<Suspense>
<NavigationBar host={domain ?? "opplens.com"} />
<NavigationBar />
</Suspense>
</header>