JSPM

@gridsome/source-strapi

0.2.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 143
  • Score
    100M100P100Q78059F

Strapi source for Gridsome

Package Exports

  • @gridsome/source-strapi

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@gridsome/source-strapi) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@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: ''
        }
      }
    }
  ]
}