Aligned with upstream changes

This commit is contained in:
cond0r
2021-02-25 09:55:02 +02:00
parent d83367f257
commit f242f3c588
17 changed files with 77 additions and 47 deletions

View File

@@ -1,7 +1,8 @@
const withCommerceConfig = require('./framework/commerce/with-config')
const commerce = { provider: 'bigcommerce' }
const commerce = { provider: 'shopify' }
const isBC = commerce.provider === 'bigcommerce'
const isShopify = commerce.provider === 'shopify'
module.exports = withCommerceConfig({
commerce,
@@ -11,7 +12,7 @@ module.exports = withCommerceConfig({
},
rewrites() {
return [
isBC && {
(isBC || isShopify) && {
source: '/checkout',
destination: '/api/bigcommerce/checkout',
},