mirror of
https://github.com/vercel/commerce.git
synced 2025-07-15 17:01:22 +00:00
Revert to local
This commit is contained in:
parent
483b608e0c
commit
51c625d283
@ -42,6 +42,9 @@ const cartEndpoint: GetAPISchema<
|
|||||||
// Create or add an item to the cart
|
// Create or add an item to the cart
|
||||||
if (req.method === 'POST') {
|
if (req.method === 'POST') {
|
||||||
const body = addItemBodySchema.parse({ ...input, cartId })
|
const body = addItemBodySchema.parse({ ...input, cartId })
|
||||||
|
if (!body.item.quantity) {
|
||||||
|
body.item.quantity = 1
|
||||||
|
}
|
||||||
output = await handlers['addItem']({ ...ctx, body })
|
output = await handlers['addItem']({ ...ctx, body })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,8 +23,8 @@
|
|||||||
"@components/*": ["components/*"],
|
"@components/*": ["components/*"],
|
||||||
"@commerce": ["../packages/commerce/src"],
|
"@commerce": ["../packages/commerce/src"],
|
||||||
"@commerce/*": ["../packages/commerce/src/*"],
|
"@commerce/*": ["../packages/commerce/src/*"],
|
||||||
"@framework": ["../packages/vendure/src"],
|
"@framework": ["../packages/local/src"],
|
||||||
"@framework/*": ["../packages/vendure/src/*"]
|
"@framework/*": ["../packages/local/src/*"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"include": ["next-env.d.ts", "**/*.d.ts", "**/*.ts", "**/*.tsx", "**/*.js"],
|
"include": ["next-env.d.ts", "**/*.d.ts", "**/*.ts", "**/*.tsx", "**/*.js"],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user