diff --git a/.env.template b/.env.template index b24458b80..5f34b0898 100644 --- a/.env.template +++ b/.env.template @@ -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= diff --git a/framework/commerce/config.js b/framework/commerce/config.js index 019c59a51..c51cf5277 100644 --- a/framework/commerce/config.js +++ b/framework/commerce/config.js @@ -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') ) }