-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
115 lines (111 loc) · 2.9 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
require("dotenv").config()
module.exports = {
siteMetadata: {
links: {
contact: "mailto:[email protected]",
facebook: "https://www.facebook.com",
linkedin: "https://www.linkedin.com",
twitter: "https://www.twitter.com",
},
locale: "en",
title: "Webinars",
},
plugins: [
`gatsby-plugin-postcss`,
`gatsby-plugin-react-helmet`,
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,{
resolve: `gatsby-plugin-google-fonts`,
options: {
fonts: [
`chivo\:300,400,400i,700` // you can also specify font weights and styles
],
display: 'swap'
}
},
{
resolve: `gatsby-plugin-modal-routing`,
options: {
// See http://reactcommunity.org/react-modal/#usage
modalProps: {
style: {
overlay: {
backgroundColor: `rgba(0, 0, 0, 0.5)`,
},
content: {
position: `absolute`,
border: `none`,
background: `none`,
padding: 0,
top: 0,
bottom: 0,
right: 0,
left: 0,
overflow: `auto`,
WebkitOverflowScrolling: `touch`,
},
},
},
},
},
{
resolve: `gatsby-source-airtable`,
options: {
apiKey: "keyqeVpmWnBtrt0zZ",
tables: [
{
baseId: "appjOODx5k9YDok36",
tableName: "webinars",
mapping: { image: "fileNode" },
},
],
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Webinars`,
short_name: `Webinars`,
start_url: `/`,
background_color: `#fff`,
theme_color: `#4299e1`,
display: `standalone`,
icon: `src/images/icon.png`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images/`,
},
},
{
resolve: `gatsby-plugin-purgecss`,
options: {
develop: false,
printRejected: false,
rejected: true,
tailwind: true,
},
},
{
resolve: "gatsby-plugin-google-tagmanager",
options: {
id: "UA-164396662-1",
// Include GTM in development.
// Defaults to false meaning GTM will only be loaded in production.
includeInDevelopment: false,
// datalayer to be set before GTM is loaded
// should be an object or a function that is executed in the browser
// Defaults to null
defaultDataLayer: { platform: "gatsby" },
// Specify optional GTM environment details.
// gtmAuth: "YOUR_GOOGLE_TAGMANAGER_ENVIRONMENT_AUTH_STRING",
// gtmPreview: "YOUR_GOOGLE_TAGMANAGER_ENVIRONMENT_PREVIEW_NAME",
// dataLayerName: "YOUR_DATA_LAYER_NAME",
},
},
],
pathPrefix: "/webinars",
}