-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
95 lines (95 loc) · 2.61 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
module.exports = {
siteMetadata: {
title: 'Audal Boilerplate - make sure this is updated',
description: 'Default Audal Labs starting project',
author: 'Audal Labs',
},
plugins: [
'gatsby-plugin-sitemap',
{
resolve: 'gatsby-plugin-canonical-urls',
options: {
siteUrl: 'https://www.example.com',
},
},
'gatsby-plugin-postcss',
'gatsby-plugin-sass',
'gatsby-plugin-image',
'gatsby-plugin-react-helmet',
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
'gatsby-plugin-layout',
'gatsby-plugin-react-svg',
'gatsby-plugin-webpack-bundle-analyser-v2',
'gatsby-plugin-emotion',
'emotion-cache-plugin',
// `gatsby-plugin-preact`,
/* `gatsby-plugin-pressless`,
{
resolve: `gatsby-plugin-yoast-sitemap`,
options: {
baseUrl: process.env.WP_URL,
gatsbyUrl: "enter your gatsby url here"
}
},
{
resolve: `gatsby-source-wordpress`,
options: {
develop: {
hardCacheMediaFiles: true
},
url: `https://${process.env.WP_URL}/graphql`,
debug: {
preview: true,
graphql: {
printIntrospectionDiff: true,
showQueryVarsOnError: true,
writeQueriesToDisk: false
}
},
schema: { timeout: 800000, perPage: 20, requestConcurrency: 5, previewRequestConcurrency: 2 },
presets: [
{
useIf: () => process.env.NODE_ENV === `development`,
options: {
type: {
Post: {
limit: 60
},
Page: {
limit: 10
}
}
}
}
]
}
}, */
{
resolve: 'gatsby-plugin-netlify',
options: {
headers: {
'/*': [
'X-XSS-Protection: 1; mode=block',
'X-Content-Type-Options: nosniff',
'Referrer-Policy: same-origin',
],
},
},
},
{
resolve: 'gatsby-plugin-google-fonts',
options: {
fonts: ['Inter:400,400i,500,600,700'],
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
path: './src/images/',
},
__key: 'images',
},
],
};