Skip to content

Commit

Permalink
Use correct build type env var. (#864)
Browse files Browse the repository at this point in the history
  • Loading branch information
timcosgrove authored Jan 10, 2025
1 parent cf2af71 commit dd6dd04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/templates/common/medallia/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import {
import { BUILD_TYPES } from '@/lib/constants/environment'

export function MedalliaAssets() {
const scriptId = process.env.BUILD_TYPE === 'prod' ? 2 : 5
const scriptId =
process.env.NEXT_PUBLIC_BUILD_TYPE === BUILD_TYPES.PROD ? 2 : 5

useEffect(() => {
if (process.env.NEXT_PUBLIC_BUILD_TYPE === BUILD_TYPES.LOCAL) {
Expand Down

0 comments on commit dd6dd04

Please sign in to comment.