Skip to content

This takes the code from the `gridsome` folder in `muellercornelius/gridsome`, which supports Strapi single types, so that it can be installed from GitHub via npm

omni-digital/gridsome-single-types

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@gridsome/source-strapi

Strapi source for Gridsome

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'],
        singleTypes: ['impressum'],
        // Possibility to login with a Strapi user,
        // when content types are not publicly available (optional).
        loginData: {
          identifier: '',
          password: ''
        }
      }
    }
  ]
}

About

This takes the code from the `gridsome` folder in `muellercornelius/gridsome`, which supports Strapi single types, so that it can be installed from GitHub via npm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published