0.1.3 • Published 5 years ago
gridsome-source-strapi v0.1.3
gridsome-source-strapi
Strapi source for Gridsome
This plugin was developed by Wade Penistone and was submitted as a pull request to Gridsome in April. It has yet to be merged. Some of us are impatient.
Install
yarn add gridsome-source-strapi
npm 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`],
plural: true, // pluralizes names of Content Types in API
// Possibility to login with a Strapi user, when content types are not publicly available (optional).
loginData: {
identifier: '',
password: '',
},
}
}
]
}