- Add dynamic sitemap.ts, robots.ts, and llms.txt route - Add metadataBase and JSON-LD Organization schema to layout - Set canonical alternates for all routes - Migrate raw img tags to next/image for LCP optimization - Add SEO dictionary strings to tr.json and en.json
27 lines
686 B
TypeScript
27 lines
686 B
TypeScript
import { getDictionary, Locale } from "../../dictionaries";
|
|
import SSSClient from "./SSSClient";
|
|
|
|
export async function generateMetadata({ params }: { params: Promise<{ lang: string }> }) {
|
|
const { lang } = await params;
|
|
const dict = await getDictionary(lang as Locale);
|
|
return {
|
|
title: dict.seo.faq.title,
|
|
description: dict.seo.faq.description,
|
|
alternates: {
|
|
canonical: `/${lang}/sss`,
|
|
},
|
|
};
|
|
}
|
|
|
|
export default async function SSSPage({
|
|
params,
|
|
}: {
|
|
params: Promise<{ lang: string }>;
|
|
}) {
|
|
const { lang } = await params;
|
|
const locale = lang as Locale;
|
|
const dict = await getDictionary(locale);
|
|
|
|
return <SSSClient lang={locale} dict={dict} />;
|
|
}
|