mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
setup swell checkout
This commit is contained in:
@@ -3,6 +3,7 @@ const withCommerceConfig = require('./framework/commerce/with-config')
|
||||
|
||||
const isBC = commerce.provider === 'bigcommerce'
|
||||
const isShopify = commerce.provider === 'shopify'
|
||||
const isSwell = commerce.provider === 'swell'
|
||||
|
||||
module.exports = withCommerceConfig({
|
||||
commerce,
|
||||
@@ -12,7 +13,7 @@ module.exports = withCommerceConfig({
|
||||
},
|
||||
rewrites() {
|
||||
return [
|
||||
(isBC || isShopify) && {
|
||||
(isBC || isShopify || isSwell) && {
|
||||
source: '/checkout',
|
||||
destination: '/api/bigcommerce/checkout',
|
||||
},
|
||||
|
Reference in New Issue
Block a user