Skip to content

Commit

Permalink
chore: Change Sanity init variables
Browse files Browse the repository at this point in the history
  • Loading branch information
acasazza committed Mar 18, 2021
1 parent cca4b1e commit ca9a044
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions template/web/utils/sanity/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import {
} from './typings'

const client = sanityClient({
projectId: process.env.projectId as string,
dataset: process.env.dataset as string,
projectId: process.env.SANITY_PROJECT_ID as string,
dataset: process.env.SANITY_DATASET as string,
token: process.env.SANITY_TOKEN as string, // or leave blank to be anonymous user
useCdn: process.env.NODE_ENV === 'production', // `false` if you want to ensure fresh data
})
Expand Down

0 comments on commit ca9a044

Please sign in to comment.