-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgatsby-config.js
42 lines (41 loc) · 1.31 KB
/
gatsby-config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
const dotenv = require("dotenv").config()
module.exports = {
siteMetadata: {
title: `Airtable CMS + Gatsby`,
description: `Boilerplate for using Airtable as a CMS with a Gatsby frontend.`,
author: `@kallirroi`,
},
plugins: [
`gatsby-plugin-react-helmet`,
`gatsby-transformer-remark`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `gatsby-starter-default`,
short_name: `starter`,
start_url: `/`,
background_color: `#663399`,
theme_color: `#663399`,
display: `minimal-ui`,
},
},
{
resolve: `gatsby-source-airtable`,
options: {
apiKey: process.env.AIRTABLE_API_KEY,
concurrency: 5, // default, see using markdown and attachments for more information
tables: [
{
baseId: process.env.AIRTABLE_BASE,
tableName: process.env.AIRTABLE_TABLE,
mapping: { Body: 'text/markdown' },
separateNodeType: false, // boolean, default is false, see the documentation on naming conflicts for more information
separateMapType: false, // boolean, default is false, see the documentation on using markdown and attachments for more information
}
]
}
},
],
}