0.1.5 • Published 4 years ago

scully-plugin-contentful v0.1.5

Weekly downloads
10
License
MIT
Repository
github
Last release
4 years ago

scully-plugin-contentful

contentful plugin for scully

Getting Started

# install in your existing scully project
npm i -S scully-plugin-contentful
/**
 * scully.scully-example-contentful.config.js
 */
require('scully-plugin-contentful');
require('dotenv').config();

exports.config = {
  projectRoot: './src',
  projectName: 'scully-example-contentful',
  outDir: './dist/static',
  routes: {
    '/article/:articleId': {
      type: 'contentful',
      config: {
        spaceId: process.env.SPACE_ID,
        accessToken: process.env.ACCESS_TOKEN,
        contentType: 'article',
      }
    },
  }
};

See Example Repository

Configuration

Required
| Name | Type | Description | |---|---|---| | spaceId | string | your contentful space id | | accessToken | string | your contentful access token (note: this can be either production or preview key) | | contentType | string | the contentful content type id |

Optional | Name | Type | Description | |---|---|---| | host | string | contentful host URL. To use Preview API use 'preview.contentful.com' | | environment | string | your contentful environment |

Community Support

Scully on GitHub
Scully on Gitter
Upstate Interactive on Twitter

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago