feat: SEO overhaul — expanded sitemap, JSON-LD, canonical URLs, search metadata

This commit is contained in:
2026-04-27 16:05:31 +08:00
parent 9a6db98d42
commit 713b309f74
5 changed files with 96 additions and 19 deletions
+15 -1
View File
@@ -17,6 +17,7 @@ export async function generateMetadata({ params }: { params: Promise<{ slug: str
return {
title: `${device.name} — DeckyVault`,
description: `Benchmark data and performance stats for ${device.name} on DeckyVault`,
alternates: { canonical: `https://deckyvault.xyz/devices/${slug}` },
}
}
@@ -37,5 +38,18 @@ export default async function DevicePage({ params }: { params: Promise<{ slug: s
notFound()
}
return <DeviceDetailClient device={device} />
const jsonLd = {
"@context": "https://schema.org",
"@type": "Product",
name: device.name,
category: device.deviceType,
url: `https://deckyvault.xyz/devices/${device.slug}`,
}
return (
<>
<script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }} />
<DeviceDetailClient device={device} />
</>
)
}