From 1af4f46a0faed19e668ade4d89980e2cd707ac09 Mon Sep 17 00:00:00 2001 From: Lenny Peters Date: Sat, 5 Oct 2024 13:45:30 -0700 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20maintainable=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/styles/typography.scss | 2 -- src/utils/contentfulPosts.tsx | 7 ++----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/styles/typography.scss b/src/styles/typography.scss index fb39b98..de9fbe4 100644 --- a/src/styles/typography.scss +++ b/src/styles/typography.scss @@ -112,9 +112,7 @@ a { color: white; background-color: $darkPrimaryColor; } -} -a { img { border-bottom: none; } diff --git a/src/utils/contentfulPosts.tsx b/src/utils/contentfulPosts.tsx index e189d20..092abd4 100644 --- a/src/utils/contentfulPosts.tsx +++ b/src/utils/contentfulPosts.tsx @@ -5,12 +5,9 @@ import { Entry, } from "contentful"; -const space = process.env.NEXT_PUBLIC_CONTENTFUL_SPACE_ID || ""; -const accessToken = process.env.NEXT_PUBLIC_CONTENTFUL_ACCESS_TOKEN || ""; - const client = createClient({ - space, - accessToken, + space: process.env.CONTENTFUL_SPACE_ID ?? "", + accessToken: process.env.CONTENTFUL_ACCESS_TOKEN ?? "", }); export async function getAllPosts(name: string) {