Fix Lighthouse SEO metadata issues
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user