Skip to content

Commit

Permalink
Merge pull request #38 from scientist-softserv/36-update-charts-for-gtm
Browse files Browse the repository at this point in the history
36 update charts for gtm
  • Loading branch information
alishaevn authored Jan 24, 2024
2 parents 6628081 + 02a1f61 commit 180d75b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,3 @@ NEXT_PUBLIC_PROVIDER_ID=12527
NEXT_PUBLIC_SCIENTIST_API_VERSION=v2
NEXT_PUBLIC_WEBHOOK_URL=http://ss-mailer/webstore
NEXT_PUBLIC_APP_BASE_URL=https://www.phenovista.vercel.app

# optional/conditional variables
GOOGLE_TAG_MANAGER_ID=GTM-PQGCP24G
2 changes: 2 additions & 0 deletions charts/webstore/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ spec:
value: "{{ .Values.clientSecret }}"
- name: CLIENT_ID
value: "{{ .Values.clientId }}"
- name: GOOGLE_TAG_MANAGER_ID
value: "{{ .Values.googleTagManagerId }}"
- name: NEXTAUTH_SECRET
value: "{{ .Values.nextAuthSecret }}"
- name: NEXTAUTH_URL
Expand Down
1 change: 1 addition & 0 deletions charts/webstore/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ appBaseUrl: ''
clientId: ''
clientSecret: ''
fullnameOverride: ''
googleTagManagerId: ''
imagePullSecrets: []
nameOverride: ''
nextAuthSecret: ''
Expand Down
1 change: 1 addition & 0 deletions ops/production-deploy.tmpl.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
appBaseUrl: 'https://phenovista.softserv.cloud'
clientId: $CLIENT_ID
clientSecret: $CLIENT_SECRET
googleTagManagerId: 'GTM-PQGCP24G'
nextAuthSecret: $NEXTAUTH_SECRET
nextAuthUrl: 'https://phenovista.softserv.cloud/api/auth'
nextPublicToken: $NEXT_PUBLIC_TOKEN
Expand Down
1 change: 1 addition & 0 deletions ops/staging-deploy.tmpl.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
appBaseUrl: 'https://phenovista-staging.softserv.cloud'
clientId: $CLIENT_ID
clientSecret: $CLIENT_SECRET
googleTagManagerId: ''
nextAuthSecret: $NEXTAUTH_SECRET
nextAuthUrl: 'https://phenovista-staging.softserv.cloud/api/auth'
nextPublicToken: $NEXT_PUBLIC_TOKEN
Expand Down
3 changes: 1 addition & 2 deletions pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import {
headerAndFooterLinkColors,
} from '../utils'
import '../utils/theme/globals.scss'
const gtmId = process.env.NODE_ENV === 'production' ? process.env.GOOGLE_TAG_MANAGER_ID : ''

const WebStore = ({ Component }) => {
/**
Expand All @@ -42,7 +41,7 @@ const WebStore = ({ Component }) => {
enableCookies={enableCookies}
getCookieConsent={getCookieConsent()}
/> */}
<GoogleTagManager gtmId={gtmId} />
<GoogleTagManager gtmId={process.env.GOOGLE_TAG_MANAGER_ID} />
<Header
auth={{
signIn: () => signIn(process.env.NEXT_PUBLIC_PROVIDER_NAME),
Expand Down

0 comments on commit 180d75b

Please sign in to comment.