From 28560517569355cf447f337373ba80a3023542f4 Mon Sep 17 00:00:00 2001 From: scottrippey Date: Mon, 15 Jul 2024 11:28:43 -0400 Subject: [PATCH] chore(sanity): added default value for `projectId` --- packages/nextjs/utils/sanityClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nextjs/utils/sanityClient.ts b/packages/nextjs/utils/sanityClient.ts index 116ad9bc..399f9989 100644 --- a/packages/nextjs/utils/sanityClient.ts +++ b/packages/nextjs/utils/sanityClient.ts @@ -9,7 +9,7 @@ const sanityOptions = { export const sanityClient = client({ ...sanityOptions, - projectId: process.env.NEXT_PUBLIC_SANITY_PROJECT_ID, + projectId: process.env.NEXT_PUBLIC_SANITY_PROJECT_ID || "MISSING-ENV-VAR", useCdn: true, });