-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
121 lines (119 loc) · 3.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
require('dotenv').config({
path: `.env`,
})
const config = require(`./src/config/site`)
const prismicRepositoryName = `thec3`
const linkResolver = require('./src/utils/linkResolver').linkResolver
module.exports = {
siteMetadata: {
...config,
},
trailingSlash: 'ignore',
plugins: [
`gatsby-plugin-postcss`,
`gatsby-plugin-react-helmet`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: 'gatsby-background-image-es5',
options: {
// add your own characters to escape, replacing the default ':/'
specialChars: '/:',
},
},
{
resolve: `gatsby-plugin-typescript`,
options: {
// isTSX: true, // defaults to false
// jsxPragma: `jsx`, // defaults to "React"
// allExtensions: true, // defaults to false
},
},
{
resolve: `gatsby-background-image`,
options: {
// add your own characters to escape, replacing the default ':/'
specialChars: `/:`,
},
},
`gatsby-plugin-postcss`,
{
resolve: 'gatsby-plugin-prismic-previews',
options: {
repositoryName: prismicRepositoryName,
accessToken: process.env.PRISMIC_ACCESS_TOKEN,
},
},
{
resolve: `gatsby-source-prismic`,
options: {
repositoryName: prismicRepositoryName,
accessToken: process.env.PRISMIC_ACCESS_TOKEN,
linkResolver: linkResolver,
customTypesApiToken: process.env.PRISMIC_CUSTOM_TYPES_API_TOKEN,
// routes: [
// {
// type: 'page',
// path: '/:parent_page?/:uid',
// resolvers: {
// parent_page: 'parent_page',
// },
// },
// ],
// graphQuery: `
// {
// }
// `,
},
},
{
resolve: `gatsby-plugin-umami`,
options: {
websiteId: 'ee3c430d-e2d2-4256-973e-7c0be0223d63',
srcUrl: 'https://analytics.thec3.uk/script.js',
includeInDevelopment: false,
autoTrack: true,
respectDoNotTrack: true,
},
},
{
resolve: `gatsby-plugin-mailchimp`,
options: {
endpoint:
process.env.NODE_ENV !== `production`
? `https://thec3.us19.list-manage.com/subscribe/post?u=baac982817e7fb161022a1253&id=7443c2e349&v_id=2850&f_id=000191e0f0`
: `https://thec3.us19.list-manage.com/subscribe/post?u=baac982817e7fb161022a1253&id=d62f87b12a`,
},
},
`gatsby-plugin-brotli`,
`gatsby-plugin-react-helmet`,
`gatsby-plugin-catch-links`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
`gatsby-plugin-sitemap`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: config.title,
short_name: config.shortName,
description: config.description,
start_url: config.pathPrefix,
background_color: config.backgroundColor,
theme_color: config.themeColor,
display: `standalone`,
icon: config.favicon,
legacy: true,
},
},
`gatsby-plugin-netlify`,
`gatsby-plugin-image`,
{
resolve: `gatsby-plugin-algolia`,
options: {
appId: process.env.GATSBY_ALGOLIA_APP_ID,
apiKey: process.env.ALGOLIA_ADMIN_KEY,
queries: require('./src/utils/algolia-queries'),
},
},
],
}