mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
Initial commit
This commit is contained in:
@@ -10,7 +10,7 @@ import { Gallery } from 'components/product/gallery';
|
||||
import { VariantSelector } from 'components/product/variant-selector';
|
||||
import Prose from 'components/prose';
|
||||
import { HIDDEN_PRODUCT_TAG } from 'lib/constants';
|
||||
import { getProduct, getProductRecommendations } from 'lib/shopify';
|
||||
import { getProduct } from 'lib/shopify';
|
||||
import { Image } from 'lib/shopify/types';
|
||||
|
||||
export const runtime = 'edge';
|
||||
@@ -97,7 +97,9 @@ export default async function ProductPage({ params }: { params: { handle: string
|
||||
}
|
||||
|
||||
async function RelatedProducts({ id }: { id: string }) {
|
||||
const relatedProducts = await getProductRecommendations(id);
|
||||
console.log(id);
|
||||
// const relatedProducts = await getProductRecommendations(id);
|
||||
const relatedProducts: any[] = [];
|
||||
|
||||
if (!relatedProducts.length) return null;
|
||||
|
||||
|
Reference in New Issue
Block a user