mirror of
https://github.com/vercel/commerce.git
synced 2025-06-19 13:41:22 +00:00
18 lines
384 B
TypeScript
18 lines
384 B
TypeScript
import spreeClient from 'lib/spree';
|
|
|
|
export default async function Products() {
|
|
const products = await (await spreeClient.products.list({})).success().data;
|
|
|
|
console.log('FUCK', products);
|
|
|
|
return (
|
|
<div>
|
|
{products.map((product) => (
|
|
<div className="md:ml-auto" key={product.id}>
|
|
{product.attributes.name}
|
|
</div>
|
|
))}
|
|
</div>
|
|
);
|
|
}
|