0.2.0 • Published 2 years ago
gridsome-source-strapi-v4 v0.2.0
@gridsome/source-strapi
Strapi source for Gridsome
Install
npm install @gridsome/source-strapi
yarn add @gridsome/source-strapi
pnpm install @gridsome/source-strapi
Usage
export default {
plugins: [
{
use: '@gridsome/source-strapi',
options: {
apiURL: 'http://localhost:1337',
queryLimit: 1000, // Defaults to 100
contentTypes: ['article', 'user'],
singleTypes: ['impressum'],
// Locales are required to load single-type content with multiple locales into a single collection
locales: ['en', 'ru-RU'] //Default ['en']
// Possibility to login with a Strapi user,
// when content types are not publicly available (optional).
loginData: {
identifier: '',
password: ''
}
}
}
]
}