Options for StrapiSource
Property | Type | Default | Description |
---|---|---|---|
version |
'3' | '4' |
'3' |
Versions 3 and 4 are supported. |
baseUrl |
string |
The base url of your Strapi CMS (with or without trailing slash). | |
queries |
Array.<(string|StrapiObjectQuery)> |
[] |
Queries for each type of content you want to save. One per content type. Content will be stored as numbered, paginated JSONs. You can include all query parameters supported by Strapi. You can also pass an object with a contentType and params property, where params is an object of query parameters. |
limit |
number |
100 |
Max number of entries per page. |
maxNumPages |
number |
-1 |
Max number of pages. Use the default of -1 for all pages |
pageNumZeroPad |
number |
0 |
How many zeros to pad each json filename index with. |
identifier |
string |
Username or email. Should be configured via ./.env.local |
|
password |
string |
Should be configured via ./.env.local |
|
token |
string |
Can be used instead of identifer/password if you previously generated one. Otherwise this will be automatically generated using the identifier or password. |