feat: add woocommerce to config and graphql endpoint to .env.template

This commit is contained in:
Reza Babaei
2021-08-08 02:05:05 +03:00
committed by Reza Babaei
parent f9644fecef
commit 45e6946b94
2 changed files with 5 additions and 0 deletions

View File

@@ -23,3 +23,5 @@ NEXT_PUBLIC_SALEOR_CHANNEL=
NEXT_PUBLIC_VENDURE_SHOP_API_URL=
NEXT_PUBLIC_VENDURE_LOCAL_URL=
NEXT_PUBLIC_WOOCOMMERCE_SHOP_API_URL=

View File

@@ -14,6 +14,7 @@ const PROVIDERS = [
'shopify',
'swell',
'vendure',
'woocommerce',
]
function getProviderName() {
@@ -25,6 +26,8 @@ function getProviderName() {
? 'shopify'
: process.env.NEXT_PUBLIC_SWELL_STORE_ID
? 'swell'
: process.env.NEXT_PUBLIC_WOOCOMMERCE_SHOP_API_URL
? 'woocommerce'
: 'local')
)
}