import { GetStaticPropsContext, InferGetStaticPropsType } from 'next' import getAllProducts from '@lib/bigcommerce/api/operations/get-all-products' import { Layout } from '@components/core' import { Grid, Marquee } from '@components/ui' export async function getStaticProps({ preview }: GetStaticPropsContext) { const { products } = await getAllProducts() return { props: { products }, } } export default function Home({ products, }: InferGetStaticPropsType) { return ( <> (
{p.node.name}
)} /> (

This is a very short title

)} />

A very long title with a nice description

) } Home.Layout = Layout