forked from Aliciawyse/refactr_web_app
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgatsby-config.js
101 lines (100 loc) · 3.05 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`
});
module.exports = {
siteMetadata: {
title: "REFACTR.TECH"
},
plugins: [
{
resolve: `gatsby-plugin-google-gtag`,
options: {
// You can add multiple tracking ids and a pageview event will be fired for all of them.
trackingIds: [
"G-DPQL2M21DH",
"AW-854600055"],
// This object is used for configuration specific to this plugin
pluginConfig: {
// Puts tracking script in the head instead of the body
head: true
},
},
},{
resolve: `gatsby-source-filesystem`,
options: {
name: `assets`,
path: `${__dirname}/src/styles/assets/img/`
}
},
{
resolve: `gatsby-plugin-mailchimp`,
options: {
endpoint: `https://tech.us19.list-manage.com/subscribe/post?u=5ae8995a4bf065a3c7cd6ad50&id=e8f624f474`
}
},
{
resolve: `gatsby-source-airtable`,
options: {
apiKey: process.env.GATSBY_AIRTABLE_API_KEY,
tables: [
{
baseId: process.env.GATSBY_AIRTABLE_BASE_KEY,
tableName: `Speakers`,
queryName: `speakers`,
tableLinks: ["Sessions"],
mapping: { headshot: `fileNode` }
},
{
baseId: process.env.GATSBY_AIRTABLE_BASE_KEY,
tableName: `Sessions`,
queryName: `sessions`,
tableLinks: ["Speakers"]
},
{
baseId: process.env.GATSBY_AIRTABLE_BASE_KEY,
tableName: `Sponsors`,
queryName: `sponsors`,
mapping: { sponsor_logo: `fileNode` }
},
{
baseId: process.env.GATSBY_AIRTABLE_BASE_KEY,
tableName: `Team`,
queryName: `team`,
mapping: { member_headshot: `fileNode` }
},
{
baseId: process.env.GATSBY_AIRTABLE_BASE_KEY,
tableName: `PastSponsors`,
queryName: `pastSponsors`,
mapping: { sponsor_logo: `fileNode` }
},
{
baseId: process.env.GATSBY_AIRTABLE_BASE_KEY,
tableName: `FullSchedule`,
queryName: `fullSchedule`,
tableLinks: ["Speakers"],
mapping: { meta_image: `fileNode` }
}
]
}
},{
resolve: `gatsby-plugin-manifest`,
options: {
name: "REFACTR.TECH",
short_name: "REFACTR.TECH",
start_url: "/",
background_color: "#6b37bf",
theme_color: "#6b37bf",
// Enables "Add to Homescreen" prompt and disables browser UI (including back button)
// see https://developers.google.com/web/fundamentals/web-app-manifest/#display
display: "standalone",
icon: "src/images/icon.png", // This path is relative to the root of the site.
},
},
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
`gatsby-plugin-react-helmet`,
`gatsby-plugin-offline`,
`gatsby-plugin-styled-components`
]
};