We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3534f6b commit 4b96afbCopy full SHA for 4b96afb
src/lib/config.ts
@@ -52,6 +52,7 @@ export const siteConfig = {
52
staticRoutes: flattenByChildren(mainNav)
53
.filter((item) => isInternalHref(item.href))
54
.map((item) => (item.href === "/" ? "" : item.href)),
55
+ siteUrl: process.env.SITE_URL?.replace(/\/$/, ""),
56
};
57
58
export function getNavLabel(path: string): string | undefined {
@@ -72,6 +73,9 @@ export function buildPageMetadata(
72
73
return {
74
title: label,
75
description,
76
+ alternates: {
77
+ canonical: path === "/" ? "/" : path.replace(/\/$/, ""),
78
+ },
79
openGraph: {
80
81
0 commit comments