From 19606d41347da51b2272b04bc38dcbd6445a8751 Mon Sep 17 00:00:00 2001 From: Arjun Komath Date: Sat, 24 Feb 2024 11:15:01 +1100 Subject: [PATCH] Fix Sanity config --- apps/web/pages/blog/index.tsx | 4 ++-- apps/web/utils/cms.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/web/pages/blog/index.tsx b/apps/web/pages/blog/index.tsx index ad7a30d..ea33054 100644 --- a/apps/web/pages/blog/index.tsx +++ b/apps/web/pages/blog/index.tsx @@ -50,9 +50,9 @@ export default function Blog({ posts }: { posts: BlogPost[] }) {
-

+

- Recent publications + Recent Posts

{TAGLINE} diff --git a/apps/web/utils/cms.ts b/apps/web/utils/cms.ts index 239e385..dd82b6c 100644 --- a/apps/web/utils/cms.ts +++ b/apps/web/utils/cms.ts @@ -3,7 +3,7 @@ import imageUrlBuilder from "@sanity/image-url"; import { SanityImageSource } from "@sanity/image-url/lib/types/types"; const client = createClient({ - projectId: process.env.SANITY_PROJECT_ID, // you can find this in sanity.json + projectId: process.env.NEXT_PUBLIC_SANITY_PROJECT_ID, // you can find this in sanity.json dataset: "production", // or the name you chose in step 1 useCdn: true, // `false` if you want to ensure fresh data });