返回 CodeWhale
page.tsx
根目录 / web / app / [locale] / merch / page.tsx
1 import type { Metadata } from "next";
2 import { MerchStorefront } from "@/components/merch-storefront";
3 import { getStorefrontCopy } from "@/lib/content/merch-storefront";
4
5 export async function generateMetadata({ params }: { params: Promise<{ locale: string }> }): Promise<Metadata> {
6 const { locale } = await params;
7 const copy = getStorefrontCopy(locale);
8 return { title: `${copy.merch} · Codewhale`, description: copy.description, robots: { index: false, follow: false } };
9 }
10
11 export default async function MerchPage({ params }: { params: Promise<{ locale: string }> }) {
12 const { locale } = await params;
13 return <MerchStorefront locale={locale} />;
14 }
15
15 lines Plain Text