-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathgatsby-config.js
94 lines (92 loc) · 2.32 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
require('dotenv').config({
path: `.env.${process.env.NODE_ENV}`,
});
const path = require(`path`);
module.exports = {
pathPrefix: `/`,
siteMetadata: {
siteUrl: `https://getstation.com/`,
},
plugins: [
{
resolve: `gatsby-plugin-env-variables`,
options: {
whitelist: ['GRAPHQL_URI', 'FIREBASE_API_KEY', 'FIREBASE_AUTH_DOMAIN'],
},
},
'gatsby-plugin-react-helmet',
{
resolve: `gatsby-plugin-manifest`,
options: {
name: 'Get Station',
short_name: 'Station',
start_url: '/',
background_color: '#2F70CC',
theme_color: '#2F70CC',
display: 'minimal-ui',
icon: 'src/images/icon.png', // This path is relative to the root of the site.
},
},
'gatsby-plugin-remove-serviceworker',
// 'gatsby-plugin-sharp',
// {
// resolve: 'gatsby-source-prismic',
// options: {
// repositoryName: 'station-website',
// accessToken: `${process.env.API_KEY}`,
// shouldNormalizeImage: () => true,
// },
// },
'gatsby-transformer-sharp',
{
resolve: `gatsby-source-filesystem`,
options: {
name: 'img',
path: `${__dirname}/src/images`,
},
},
{
resolve: `gatsby-plugin-emotion`,
options: {},
},
{
resolve: `gatsby-plugin-sitemap`,
options: {
output: `/sitemap.xml`,
// Exclude specific pages or groups of pages using glob parameters
// See: https://github.com/isaacs/minimatch
// The example below will exclude the single `path/to/page` and all routes beginning with `category`
// exclude: ["/category/*", `/path/to/page`],
query: `
{
site {
siteMetadata {
siteUrl
}
}
allSitePage {
edges {
node {
path
}
}
}
}`,
},
},
{
resolve: `gatsby-plugin-polyfill-io`,
},
{
resolve: `gatsby-plugin-google-tagmanager`,
options: {
id: `${process.env.GTM_ID}`,
includeInDevelopment: false,
gtmAuth: `${process.env.GTM_AUTH}`,
gtmPreview: `${process.env.GTM_PREVIEW}`,
},
},
'gatsby-plugin-netlify',
'gatsby-plugin-client-side-redirect',
],
};