Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Commit

Permalink
Step 2: Installing and configuring the Sanity Client
Browse files Browse the repository at this point in the history
  • Loading branch information
colbyfayock committed Jan 18, 2021
1 parent 943530c commit 72d1139
Show file tree
Hide file tree
Showing 3 changed files with 226 additions and 3 deletions.
7 changes: 7 additions & 0 deletions lib/sanity.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import sanityClient from '@sanity/client';

export const client = sanityClient({
projectId: '5xqlmx5v',
dataset: 'production',
useCdn: true
});
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"start": "next start"
},
"dependencies": {
"@sanity/client": "^2.1.4",
"next": "10.0.5",
"react": "17.0.1",
"react-dom": "17.0.1"
Expand Down
Loading

0 comments on commit 72d1139

Please sign in to comment.