mirror of
https://github.com/vercel/commerce.git
synced 2025-05-17 15:06:59 +00:00
Fix undefined _id
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
This commit is contained in:
parent
054ac1dcfb
commit
dd3efaa301
@ -20,7 +20,7 @@ const getCart: CartEndpoint['handlers']['getCart'] = async ({
|
|||||||
})
|
})
|
||||||
|
|
||||||
return res.status(200).json({
|
return res.status(200).json({
|
||||||
data: normalizeCart(rawAnonymousCart),
|
data: rawAnonymousCart ? normalizeCart(rawAnonymousCart) : null,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,6 +3,6 @@ const commerce = require('./commerce.config.json')
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
commerce,
|
commerce,
|
||||||
images: {
|
images: {
|
||||||
domains: [process.env.OPENCOMMERCE_STOREFRONT_API_URL],
|
domains: [process.env.OPENCOMMERCE_IMAGE_DOMAIN],
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -52,6 +52,7 @@ NEXT_PUBLIC_COMMERCEJS_DEPLOYMENT_URL=
|
|||||||
|
|
||||||
OPENCOMMERCE_STOREFRONT_API_URL=
|
OPENCOMMERCE_STOREFRONT_API_URL=
|
||||||
OPENCOMMERCE_PRIMARY_SHOP_ID=
|
OPENCOMMERCE_PRIMARY_SHOP_ID=
|
||||||
|
OPENCOMMERCE_IMAGE_DOMAIN=
|
||||||
|
|
||||||
SFCC_CLIENT_ID=
|
SFCC_CLIENT_ID=
|
||||||
SFCC_CLIENT_SECRET=
|
SFCC_CLIENT_SECRET=
|
||||||
|
Loading…
x
Reference in New Issue
Block a user