From 75af02877b47e109c2f63756af31e3dc6e0a83b5 Mon Sep 17 00:00:00 2001 From: Ryan Killeen Date: Sun, 24 Jul 2022 18:15:09 -0400 Subject: [PATCH] add logs for debugging --- web/app/services/cms.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/app/services/cms.ts b/web/app/services/cms.ts index 14b5970..d8f8abd 100644 --- a/web/app/services/cms.ts +++ b/web/app/services/cms.ts @@ -20,9 +20,10 @@ export const getClient = (usePreview = false) => export const isPreviewEnabled = (request: Request) => { const requestUrl = new URL(request?.url); + console.log("checking preview secret", SANITY_PREVIEW_SECRET); const preview = requestUrl?.searchParams?.get("preview") === SANITY_PREVIEW_SECRET; - + console.log("preview enabled:", preview); return preview; };