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>
|
||||
|
||||
|
||||
+2
-2
@@ -11,7 +11,7 @@ export const metadata: Metadata = {
|
||||
openGraph: {
|
||||
title: "Opp lens - AI-Powered Tender Management",
|
||||
description: "Win more tenders automatically with our AI-powered platform",
|
||||
url: "https://opplens.com/",
|
||||
url: "https://opplenz.com/",
|
||||
type: "website",
|
||||
locale: "en_US",
|
||||
siteName: "Opp lens",
|
||||
@@ -23,7 +23,7 @@ export const metadata: Metadata = {
|
||||
images: ["/images/opp-lens-mobile.jpg"],
|
||||
},
|
||||
alternates: {
|
||||
canonical: "https://opplens.com/",
|
||||
canonical: "https://opplenz.com/",
|
||||
},
|
||||
robots: {
|
||||
index: true,
|
||||
|
||||
Reference in New Issue
Block a user