Skip to content

Commit

Permalink
feat(security): require access token on all prismic requests
Browse files Browse the repository at this point in the history
  • Loading branch information
charles4221 committed Dec 10, 2024
1 parent 67a5888 commit da3c404
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/prismic-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const routes: ClientConfig['routes'] = [
*/
export const createClient = (config?: ClientConfig) => {
const client = createPrismicClient(repositoryName, {
accessToken: process.env.PRISMIC_ACCESS_TOKEN,
routes,
fetchOptions: IS_PROD
? { next: { tags: ['prismic'] }, cache: 'force-cache' }
Expand Down

0 comments on commit da3c404

Please sign in to comment.