1.0.6 • Published 4 years ago

@campj/dato v1.0.6

Weekly downloads
7
License
MIT
Repository
-
Last release
4 years ago

@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

KeyTypeDefault ValueDetails
apiTokenStringprocess.env.DATO_API_TOKENRequired 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
    }
}