From dd6dd043f77e9226adee430f6a1003270f192ef7 Mon Sep 17 00:00:00 2001 From: Tim Cosgrove Date: Thu, 9 Jan 2025 19:01:39 -0800 Subject: [PATCH] Use correct build type env var. (#864) --- src/templates/common/medallia/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/templates/common/medallia/index.tsx b/src/templates/common/medallia/index.tsx index 77992cc98..c29e85336 100644 --- a/src/templates/common/medallia/index.tsx +++ b/src/templates/common/medallia/index.tsx @@ -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) {