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 { isShopifyError } from 'lib/type-guards';
import { ensureStartsWith } from 'lib/utils'; import { ensureStartsWith } from 'lib/utils';
import { import {
revalidateTag, unstable_cacheLife as cacheLife,
unstable_cacheTag as cacheTag, unstable_cacheTag as cacheTag,
unstable_cacheLife as cacheLife revalidateTag
} from 'next/cache'; } from 'next/cache';
import { cookies, headers } from 'next/headers'; import { cookies, headers } from 'next/headers';
import { NextRequest, NextResponse } from 'next/server'; import { NextRequest, NextResponse } from 'next/server';
@ -82,7 +82,7 @@ export async function shopifyFetch<T>({
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
'X-Shopify-Storefront-Access-Token': key, 'Shopify-Storefront-Private-Token': key,
...headers ...headers
}, },
body: JSON.stringify({ body: JSON.stringify({