From 865b84d5b525afaef41e442f78f6edeb5f4b7184 Mon Sep 17 00:00:00 2001 From: Tim Cosgrove Date: Mon, 30 Sep 2024 10:16:12 -0700 Subject: [PATCH] Debug env vars on prod. (#757) --- packages/env-loader/src/cms-feature-flags.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/env-loader/src/cms-feature-flags.ts b/packages/env-loader/src/cms-feature-flags.ts index b504133a7..01405ae75 100644 --- a/packages/env-loader/src/cms-feature-flags.ts +++ b/packages/env-loader/src/cms-feature-flags.ts @@ -8,6 +8,10 @@ export const getCmsFeatureFlags = async ( drupalBaseUrl: string, debug: boolean = false ): Promise => { + // eslint-disable-next-line no-console + console.log('about to dump GTM value for debugging.') + // eslint-disable-next-line no-console + console.log(process.env.NEXT_PUBLIC_GOOGLE_TAG_MANAGER_ID) const fetcher = getFetcher(drupalBaseUrl, debug) const featureFlagUrl = `${removeTrailingSlash(drupalBaseUrl)}/flags_list` const response = await fetcher(featureFlagUrl)