New provider and tiny fixes. (#326)

* changes

* Adding new provider

* Adding new provider

* Adding new provider

* Adding new provider
This commit is contained in:
B
2021-05-26 17:18:50 -03:00
committed by GitHub
parent 800ba45fae
commit 4f3674aafa
7 changed files with 161 additions and 372 deletions

View File

@@ -7,7 +7,7 @@ const fs = require('fs')
const merge = require('deepmerge')
const prettier = require('prettier')
const PROVIDERS = ['bigcommerce', 'shopify']
const PROVIDERS = ['bigcommerce', 'shopify', 'swell']
function getProviderName() {
return (
@@ -16,6 +16,8 @@ function getProviderName() {
? 'bigcommerce'
: process.env.NEXT_PUBLIC_SHOPIFY_STORE_DOMAIN
? 'shopify'
: process.env.NEXT_PUBLIC_SWELL_STORE_ID
? 'swell'
: null)
)
}