mirror of
https://github.com/vercel/commerce.git
synced 2025-05-07 10:17:50 +00:00
Fix header
This commit is contained in:
parent
92f4633666
commit
e049925078
@ -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({
|
||||
|
Loading…
x
Reference in New Issue
Block a user