Skip to content

Commit

Permalink
Revert Contentful client settings
Browse files Browse the repository at this point in the history
  • Loading branch information
hinzed1127 committed Oct 31, 2024
1 parent 7248910 commit 9a9f912
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/hooks/server/handleCurrentUserAndContentfulClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,7 @@ export const getHandleCurrentUserAndContentfulClient = ({
CONTENTFUL_SPACE_ID && CONTENTFUL_DELIVERY_API_TOKEN
? getContentfulClient({
spaceID: CONTENTFUL_SPACE_ID,
// token: CONTENTFUL_DELIVERY_API_TOKEN,
// TODO: create a way to enable preview for dev work without
// requiring a login from the UI
token: CONTENTFUL_PREVIEW_API_TOKEN,
preview: true,
token: CONTENTFUL_DELIVERY_API_TOKEN,
fetch,
})
: undefined;
Expand Down

0 comments on commit 9a9f912

Please sign in to comment.