fix: update Shopify API version

This commit is contained in:
Chloe 2024-04-15 12:34:56 +07:00
parent 68a988e466
commit 746a0fcd03
No known key found for this signature in database
GPG Key ID: CFD53CE570D42DF5
3 changed files with 2 additions and 7 deletions

View File

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

View File

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

View File

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