mirror of
https://github.com/vercel/commerce.git
synced 2025-05-15 05:56:59 +00:00
14 lines
416 B
JavaScript
14 lines
416 B
JavaScript
import { getCollections } from 'lib/shopify';
|
|
|
|
import { HomeProductsList } from '/components/home.js';
|
|
|
|
export async function generateStaticParams() {
|
|
const collections = await getCollections();
|
|
|
|
return collections.map(collection => ({ collection: collection.handle }));
|
|
}
|
|
|
|
export default async function CollectionPage({ params: { collection } }) {
|
|
return <HomeProductsList collection={collection} />;
|
|
}
|