-
Notifications
You must be signed in to change notification settings - Fork 1
/
gatsby-config.js
66 lines (65 loc) · 1.59 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
})
module.exports = {
siteMetadata: {
title: "Donations Revealed",
description:
"Corporations have made headlines with big donations recently — how much would the average household need to match their donation?",
author: "jamrants",
},
plugins: [
{
resolve: `gatsby-source-airtable`,
options: {
apiKey: process.env.AIRTABLE_KEY,
tables: [
{
baseId: process.env.BASE_ID,
tableName: `Corporations`,
mapping: { Logo: `fileNode` },
},
{
baseId: process.env.BASE_ID,
tableName: `CountryIncomes`,
queryName: "CountryIncomes",
separateNodeType: true,
},
],
},
},
{
resolve: `gatsby-plugin-chakra-ui`,
options: {
isResettingCSS: true,
isUsingColorMode: false,
},
},
{
resolve: `gatsby-plugin-web-font-loader`,
options: {
custom: {
families: [`Metropolis`],
urls: [`/fonts/fonts.css`],
},
},
},
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Donations Revealed`,
short_name: `Donations`,
start_url: `/`,
background_color: `#17171d`,
theme_color: `#32d6a6`,
display: `standalone`,
icon: `src/assets/icon.svg`,
},
},
`gatsby-plugin-offline`,
`gatsby-plugin-react-helmet`,
`gatsby-plugin-preload-fonts`,
],
}