Fix header

This commit is contained in:
Étienne St-Pierre 2025-03-25 20:59:10 -04:00
parent 92f4633666
commit e049925078

View File

@ -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<T>({
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-Shopify-Storefront-Access-Token': key,
'Shopify-Storefront-Private-Token': key,
...headers
},
body: JSON.stringify({