diff --git a/app/favicon.ico b/app/favicon.ico index dc7d8431e..c359f9482 100644 Binary files a/app/favicon.ico and b/app/favicon.ico differ diff --git a/components/layout/footer.tsx b/components/layout/footer.tsx index ef1b1e8c7..5ee049999 100644 --- a/components/layout/footer.tsx +++ b/components/layout/footer.tsx @@ -37,17 +37,6 @@ export default async function Footer() { > -
- - -
- Deploy -
-
@@ -55,13 +44,6 @@ export default async function Footer() { © {copyrightDate} {copyrightName} {copyrightName.length && !copyrightName.endsWith('.') ? '.' : ''} All rights reserved.

-
-

Designed in California

-

- - Crafted by ▲ Vercel - -

diff --git a/lib/constants.ts b/lib/constants.ts index 56bc6cd12..f11d1edb2 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-01/graphql.json'; +export const SHOPIFY_GRAPHQL_API_ENDPOINT = '/api/2023-04/graphql.json'; diff --git a/lib/shopify/index.ts b/lib/shopify/index.ts index e8b6637c8..fdc238029 100644 --- a/lib/shopify/index.ts +++ b/lib/shopify/index.ts @@ -419,11 +419,14 @@ export async function getProducts({ // This is called from `app/api/revalidate.ts` so providers can control revalidation logic. export async function revalidate(req: NextRequest): Promise { + console.log(`Receiving revalidation request from Shopify.`); // We always need to respond with a 200 status code to Shopify, // otherwise it will continue to retry the request. const collectionWebhooks = ['collections/create', 'collections/delete', 'collections/update']; const productWebhooks = ['products/create', 'products/delete', 'products/update']; const topic = headers().get('x-shopify-topic') || 'unknown'; + console.log(`Receiving revalidation request with topic.`, { topic }); + const secret = req.nextUrl.searchParams.get('secret'); const isCollectionUpdate = collectionWebhooks.includes(topic); const isProductUpdate = productWebhooks.includes(topic); diff --git a/next.config.js b/next.config.js index 8bab35c40..4011dcac5 100644 --- a/next.config.js +++ b/next.config.js @@ -1,5 +1,10 @@ /** @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