Options for SanitySource
Property | Type | Default | Description |
---|---|---|---|
apiVersion |
string |
'v2021-10-21' |
API Version |
projectId |
string |
Sanity Project ID | |
dataset |
string |
'production' |
API Version |
useCdn |
string |
false |
false if you want to ensure fresh data |
baseUrl |
string |
The base url of your Sanity CMS (with or without trailing slash). | |
queries |
Array.<string> |
||
limit |
number |
100 |
Max number of entries per page. |
maxNumPages |
number |
-1 |
Max number of pages. Use -1 for all pages |
mergePages |
boolean |
To combine paginated files into a single file. | |
pageNumZeroPad |
number |
0 |
How many zeros to pad each json filename index with. |
appendCroppedFilenames |
boolean |
true |
If an image has a crop set within Sanity, this setting will append the cropped filename to each image object as launchpad.croppedFilename . Set this to false to disable this behavior. |
apiToken |
string |
API Token defined in your sanity project. |