diff --git a/app/product/[handle]/page.tsx b/app/product/[handle]/page.tsx index 049f7bcfb..ab75b6e7e 100644 --- a/app/product/[handle]/page.tsx +++ b/app/product/[handle]/page.tsx @@ -61,7 +61,7 @@ export default async function ProductPage({ params }: { params: { handle: string '@type': 'Product', name: product.title, description: product.description, - image: product.featuredImage.url, + image: product.featuredImage?.url, offers: { '@type': 'AggregateOffer', availability: product.availableForSale diff --git a/lib/constants.ts b/lib/constants.ts index f11d1edb2..0cea8491d 100644 --- a/lib/constants.ts +++ b/lib/constants.ts @@ -28,4 +28,4 @@ export const TAGS = { export const HIDDEN_PRODUCT_TAG = 'nextjs-frontend-hidden'; export const DEFAULT_OPTION = 'Default Title'; -export const SHOPIFY_GRAPHQL_API_ENDPOINT = '/api/2023-04/graphql.json'; +export const SHOPIFY_GRAPHQL_API_ENDPOINT = '/api/2024-04/graphql.json'; diff --git a/next.config.js b/next.config.js index 4011dcac5..8bab35c40 100644 --- a/next.config.js +++ b/next.config.js @@ -1,10 +1,5 @@ /** @type {import('next').NextConfig} */ module.exports = { - logging: { - fetches: { - fullUrl: true - } - }, eslint: { // Disabling on production builds because we're running checks on PRs via GitHub Actions. ignoreDuringBuilds: true