Skip to content

Full Toolkit for Next-Level Domain Analysis

Use metadataBase 👌

Felix Wotschofsky28e7196de1a6
diff --git a/app/layout.tsx b/app/layout.tsx
index 8810437..67c82c2 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -7,6 +7,7 @@ import './globals.css';
import Providers from './providers';
export const metadata = {
+ metadataBase: process.env.SITE_URL ? new URL(process.env.SITE_URL) : null,
title: 'Domain Digger: DNS, WHOIS lookup & more',
description:
'Domain Digger is the easy but incredibly powerful tool for looking up and quickly inspecting DNS records, WHOIS data, SSL/TLS certificate history and other domain related data. No installation required!',
@@ -15,10 +16,10 @@ export const metadata = {
title: 'Domain Digger: DNS, WHOIS lookup & more',
description:
'Domain Digger is the easy but incredibly powerful tool for looking up and quickly inspecting DNS records, WHOIS data, SSL/TLS certificate history and other domain related data. No installation required!',
- url: process.env.SITE_URL,
+ url: '/',
},
alternates: {
- canonical: process.env.SITE_URL,
+ canonical: '/',
},
};
diff --git a/app/lookup/[domain]/layout.tsx b/app/lookup/[domain]/layout.tsx
index 89a8a2d..3541790 100644
--- a/app/lookup/[domain]/layout.tsx
+++ b/app/lookup/[domain]/layout.tsx
@@ -16,17 +16,17 @@ type LookupLayoutProps = {
export const generateMetadata = ({
params: { domain },
}: LookupLayoutProps): Metadata => ({
+ metadataBase: process.env.SITE_URL ? new URL(process.env.SITE_URL) : null,
title: `Results for ${domain} - Domain Digger`,
description: `Find DNS records, WHOIS data, SSL/TLS certificate history and other for ${domain}`,
openGraph: {
type: 'website',
title: `Results for ${domain} - Domain Digger`,
description: `Find DNS records, WHOIS data, SSL/TLS certificate history and other for ${domain}`,
- url: process.env.SITE_URL && `${process.env.SITE_URL}/lookup/${domain}`,
+ url: `/lookup/${domain}`,
},
alternates: {
- canonical:
- process.env.SITE_URL && `${process.env.SITE_URL}/lookup/${domain}`,
+ canonical: `/lookup/${domain}`,
},
});