mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 23:46:58 +00:00
Minor fixes
This commit is contained in:
parent
e592dfea03
commit
4dc81c78a0
@ -21,7 +21,7 @@ export default useCart as UseCart<typeof handler>
|
|||||||
|
|
||||||
// This handler avoids calling /api/cart.
|
// This handler avoids calling /api/cart.
|
||||||
// There doesn't seem to be a good reason to call it.
|
// There doesn't seem to be a good reason to call it.
|
||||||
// So far, only @framework/bigcommerce uses it.
|
// So far, only bigcommerce uses it.
|
||||||
export const handler: SWRHook<GetCartHook> = {
|
export const handler: SWRHook<GetCartHook> = {
|
||||||
// Provide fetchOptions for SWR cache key
|
// Provide fetchOptions for SWR cache key
|
||||||
fetchOptions: {
|
fetchOptions: {
|
||||||
|
@ -1,27 +0,0 @@
|
|||||||
{
|
|
||||||
"schema": {
|
|
||||||
"https://buybutton.store/graphql": {
|
|
||||||
"headers": {
|
|
||||||
"Authorization": "Bearer xzy"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"documents": [
|
|
||||||
{
|
|
||||||
"./framework/bigcommerce/api/**/*.ts": {
|
|
||||||
"noRequire": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"generates": {
|
|
||||||
"./framework/bigcommerce/schema.d.ts": {
|
|
||||||
"plugins": ["typescript", "typescript-operations"]
|
|
||||||
},
|
|
||||||
"./framework/bigcommerce/schema.graphql": {
|
|
||||||
"plugins": ["schema-ast"]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"hooks": {
|
|
||||||
"afterAllFileWrite": ["prettier --write"]
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user