mirror of
https://github.com/vercel/commerce.git
synced 2025-05-17 15:06:59 +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
|
||||
if (req.method === 'POST') {
|
||||
const body = addItemBodySchema.parse({ ...input, cartId })
|
||||
if (!body.item.quantity) {
|
||||
body.item.quantity = 1
|
||||
}
|
||||
output = await handlers['addItem']({ ...ctx, body })
|
||||
}
|
||||
|
||||
|
@ -23,8 +23,8 @@
|
||||
"@components/*": ["components/*"],
|
||||
"@commerce": ["../packages/commerce/src"],
|
||||
"@commerce/*": ["../packages/commerce/src/*"],
|
||||
"@framework": ["../packages/vendure/src"],
|
||||
"@framework/*": ["../packages/vendure/src/*"]
|
||||
"@framework": ["../packages/local/src"],
|
||||
"@framework/*": ["../packages/local/src/*"]
|
||||
}
|
||||
},
|
||||
"include": ["next-env.d.ts", "**/*.d.ts", "**/*.ts", "**/*.tsx", "**/*.js"],
|
||||
|
Loading…
x
Reference in New Issue
Block a user