Created
April 18, 2024 18:43
-
-
Save delasign/9cc7987a1c23ffe0b09aad4344adf527 to your computer and use it in GitHub Desktop.
Sample Contentful Client
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MARK: NPM Modules | |
import { createClient } from "contentful"; | |
// MARK: React Component | |
const ContentfulClient = createClient({ | |
space: process.env.CONTENTFUL_SPACE_ID as string, | |
accessToken: process.env.CONTENTFUL_ACCESS_TOKEN as string | |
}); | |
export default ContentfulClient |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment