Skip to content

Commit c21860d

Browse files
authored
Merge pull request #390 from scientist-softserv/rename-webhook
rename-webhook
2 parents 2c1650b + 261ff04 commit c21860d

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# reference https://nextjs.org/docs/basic-features/environment-variables#exposing-environment-variables-to-the-browser
22
# to learn about the NEXT_PUBLIC prefix
33

4+
# Ref: https://github.com/scientist-softserv/webstore/wiki/Deployment#when-using-a-cname
5+
# when deploying to a custom domain.
46
NEXT_PUBLIC_APP_BASE_URL=https://store.webstore.com
57
NEXT_PUBLIC_PROVIDER_ID=0001
68
NEXT_PUBLIC_PROVIDER_NAME=webstore

pages/_app.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {
2121
headerAndFooterLinkColors,
2222
} from '../utils'
2323
import '../utils/theme/globals.scss'
24+
const gtmId = process.env.NEXT_PUBLIC_GOOGLE_TAG_MANAGER_ID
2425

2526
const WebStore = ({ Component }) => {
2627
/**
@@ -41,7 +42,7 @@ const WebStore = ({ Component }) => {
4142
enableCookies={enableCookies}
4243
getCookieConsent={getCookieConsent()}
4344
/> */}
44-
<GoogleTagManager gtmId={process.env.NEXT_PUBLIC_GOOGLE_TAG_MANAGER_ID} />
45+
{gtmId && <GoogleTagManager gtmId={gtmId} />}
4546
<Header
4647
auth={{
4748
signIn: () => signIn(process.env.NEXT_PUBLIC_PROVIDER_NAME),

utils/api/webhooks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const getWebhookConfig = async (accessToken) => {
1111
export const createWebhookConfig = (accessToken) => {
1212
/* eslint-disable camelcase */
1313
const webhook_config = {
14-
'name': 'Webstore',
14+
'name': `${process.env.NEXT_PUBLIC_PROVIDER_NAME} DS`,
1515
'url': `${process.env.NEXT_PUBLIC_WEBHOOK_URL}`,
1616
'active': true,
1717
'params': {

0 commit comments

Comments
 (0)