Skip to content

Commit

Permalink
fix: access token
Browse files Browse the repository at this point in the history
  • Loading branch information
juliankoehn committed Feb 13, 2025
1 parent f51f9b4 commit 7b116ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/prismicio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ const routes: prismic.ClientConfig["routes"] = [
export const createClient = (config: prismicNext.CreateClientConfig = {}) => {
const client = prismic.createClient(repositoryName, {
routes,
accessToken: process.env.PRISMIC_ACCESS_TOKEN,
fetchOptions:
process.env.NODE_ENV === "production"
? { next: { tags: ["prismic"] }, cache: "force-cache" }
Expand Down

0 comments on commit 7b116ee

Please sign in to comment.