@campj/dato

1.0.6 • Public • Published

@campj/dato

  • Quickly setup DatoCMS integration
  • If no .env file exists, user will be prompted to enter a Dato API Token and a new .env file will automatically be created

Plugins this package provides:

  • gatsby-source-datocms
  • gatsby-transformer-remark

Options

Key Type Default Value Details
apiToken String process.env.DATO_API_TOKEN Required if you don't define DATO_API_TOKEN in your .env file

gatsby-config reference

const isProduction = process.env.NODE_ENV === `production`;

{
    resolve: `gatsby-source-datocms`,
    options: {
        apiToken: apiToken (see OPTIONS),
        previewMode: !isProduction,
        disableLiveReload: isProduction
    }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @campj/dato

Weekly Downloads

2

Version

1.0.6

License

MIT

Unpacked Size

3.49 kB

Total Files

5

Last publish

Collaborators

  • camp-jefferson-dev