Initial commit

This commit is contained in:
olivermrbl
2023-05-01 14:46:17 +02:00
parent 86dca04eec
commit 0f4f5a79df
7 changed files with 68 additions and 304 deletions

View File

@@ -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;