File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
# reference https://nextjs.org/docs/basic-features/environment-variables#exposing-environment-variables-to-the-browser
2
2
# to learn about the NEXT_PUBLIC prefix
3
3
4
+ # Ref: https://github.com/scientist-softserv/webstore/wiki/Deployment#when-using-a-cname
5
+ # when deploying to a custom domain.
4
6
NEXT_PUBLIC_APP_BASE_URL = https://store.webstore.com
5
7
NEXT_PUBLIC_PROVIDER_ID = 0001
6
8
NEXT_PUBLIC_PROVIDER_NAME = webstore
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import {
21
21
headerAndFooterLinkColors ,
22
22
} from '../utils'
23
23
import '../utils/theme/globals.scss'
24
+ const gtmId = process . env . NEXT_PUBLIC_GOOGLE_TAG_MANAGER_ID
24
25
25
26
const WebStore = ( { Component } ) => {
26
27
/**
@@ -41,7 +42,7 @@ const WebStore = ({ Component }) => {
41
42
enableCookies={enableCookies}
42
43
getCookieConsent={getCookieConsent()}
43
44
/> */ }
44
- < GoogleTagManager gtmId = { process . env . NEXT_PUBLIC_GOOGLE_TAG_MANAGER_ID } />
45
+ { gtmId && < GoogleTagManager gtmId = { gtmId } /> }
45
46
< Header
46
47
auth = { {
47
48
signIn : ( ) => signIn ( process . env . NEXT_PUBLIC_PROVIDER_NAME ) ,
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export const getWebhookConfig = async (accessToken) => {
11
11
export const createWebhookConfig = ( accessToken ) => {
12
12
/* eslint-disable camelcase */
13
13
const webhook_config = {
14
- 'name' : 'Webstore' ,
14
+ 'name' : ` ${ process . env . NEXT_PUBLIC_PROVIDER_NAME } DS` ,
15
15
'url' : `${ process . env . NEXT_PUBLIC_WEBHOOK_URL } ` ,
16
16
'active' : true ,
17
17
'params' : {
You can’t perform that action at this time.
0 commit comments