diff --git a/lib/shopify/index.ts b/lib/shopify/index.ts index b90893172..077b12e0d 100644 --- a/lib/shopify/index.ts +++ b/lib/shopify/index.ts @@ -6,9 +6,9 @@ import { import { isShopifyError } from 'lib/type-guards'; import { ensureStartsWith } from 'lib/utils'; import { - revalidateTag, + unstable_cacheLife as cacheLife, unstable_cacheTag as cacheTag, - unstable_cacheLife as cacheLife + revalidateTag } from 'next/cache'; import { cookies, headers } from 'next/headers'; import { NextRequest, NextResponse } from 'next/server'; @@ -82,7 +82,7 @@ export async function shopifyFetch({ method: 'POST', headers: { 'Content-Type': 'application/json', - 'X-Shopify-Storefront-Access-Token': key, + 'Shopify-Storefront-Private-Token': key, ...headers }, body: JSON.stringify({