Skip to content

Latest commit

 

History

History
36 lines (32 loc) · 814 Bytes

README.md

File metadata and controls

36 lines (32 loc) · 814 Bytes

gridsome-source-directus9

Based on https://github.com/avatarbabe/gridsome-source-directus9, updated to work differently with images Based on https://github.com/peXed/gridsome-source-directus, updated to support Directus 9

Basic usage:

Since this package is not (yet) published on npm, just clone the repo and add it to your package.json file:

{
  "dependencies": {
    "gridsome-source-directus9": "path/to/cloned/project/folder",
  },
}

Add this in your gridsome.config.js:

module.exports = {
  plugins: [
    {
      use: "gridsome-source-directus9",
      options: {
        ...
        collections: [
          {
            name: "articles",
            fields: "*",
            downloadImages: true
          },
          ...
        ],
      },
    },
  ],