mirror of
https://github.com/vercel/commerce.git
synced 2025-06-15 11:51:21 +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 { 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({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user