mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
feat: add woocommerce to config and graphql endpoint to .env.template
This commit is contained in:
@@ -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=
|
||||
|
@@ -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')
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user