mirror of
https://github.com/vercel/commerce.git
synced 2025-05-15 14:06:59 +00:00
28 lines
692 B
TypeScript
28 lines
692 B
TypeScript
import DynamicContentManager from 'components/layout/dynamic-content-manager/dynamic-content-manager';
|
|
import { homePageQuery } from 'lib/sanity/queries';
|
|
import { clientFetch } from 'lib/sanity/sanity.client';
|
|
export const runtime = 'edge';
|
|
|
|
export const metadata = {
|
|
description: 'High-performance ecommerce store built with Next.js, Vercel, Sanity and Storm.',
|
|
openGraph: {
|
|
type: 'website'
|
|
}
|
|
};
|
|
|
|
interface HomePageParams {
|
|
params: {
|
|
locale: string;
|
|
};
|
|
}
|
|
|
|
export default async function HomePage({ params }: HomePageParams) {
|
|
const data = await clientFetch(homePageQuery, params);
|
|
|
|
return (
|
|
<>
|
|
<DynamicContentManager content={data?.content} />
|
|
</>
|
|
);
|
|
}
|