diff --git a/.env.example b/.env.example index 9e0790d..f08e955 100644 --- a/.env.example +++ b/.env.example @@ -1,6 +1,8 @@ # reference https://nextjs.org/docs/basic-features/environment-variables#exposing-environment-variables-to-the-browser # to learn about the NEXT_PUBLIC prefix +# Ref: https://github.com/scientist-softserv/webstore/wiki/Deployment#when-using-a-cname +# when deploying to a custom domain. NEXT_PUBLIC_APP_BASE_URL=https://store.webstore.com NEXT_PUBLIC_PROVIDER_ID=0001 NEXT_PUBLIC_PROVIDER_NAME=webstore diff --git a/pages/_app.js b/pages/_app.js index 742695e..62f1a43 100644 --- a/pages/_app.js +++ b/pages/_app.js @@ -21,6 +21,7 @@ import { headerAndFooterLinkColors, } from '../utils' import '../utils/theme/globals.scss' +const gtmId = process.env.NEXT_PUBLIC_GOOGLE_TAG_MANAGER_ID const WebStore = ({ Component }) => { /** @@ -41,7 +42,7 @@ const WebStore = ({ Component }) => { enableCookies={enableCookies} getCookieConsent={getCookieConsent()} /> */} - + {gtmId && }
signIn(process.env.NEXT_PUBLIC_PROVIDER_NAME), diff --git a/utils/api/webhooks.js b/utils/api/webhooks.js index 6ec37f3..dd7a0c7 100644 --- a/utils/api/webhooks.js +++ b/utils/api/webhooks.js @@ -11,7 +11,7 @@ export const getWebhookConfig = async (accessToken) => { export const createWebhookConfig = (accessToken) => { /* eslint-disable camelcase */ const webhook_config = { - 'name': 'Webstore', + 'name': `${process.env.NEXT_PUBLIC_PROVIDER_NAME} DS`, 'url': `${process.env.NEXT_PUBLIC_WEBHOOK_URL}`, 'active': true, 'params': {