-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
74 lines (73 loc) · 2.02 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
module.exports = {
siteMetadata: {
name: `Benjamin Read`,
title: `How We're Using WordPress as a Headless CMS`,
date: `April 14, 2018`
},
plugins: [
`gatsby-plugin-react-helmet`,
`gatsby-plugin-offline`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: "UA-3085273-41",
head: true,
},
},
{
resolve: `gatsby-plugin-bugherd`,
options: {
key: `l2a8wvantlla2jdji5x2za`,
// whether to include the snippet in production. Defaults to false
showInProduction: true
},
},
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [`gatsby-remark-smartypants`]
}
},
// {
// resolve: `gatsby-source-filesystem`,
// options: {
// name: `slides`,
// path: `${__dirname}/src/pages/`
// }
// },
{
resolve: `gatsby-plugin-postcss-sass`,
options: {
postCssPlugins: [],
precision: 8
}
},
`gatsby-plugin-styled-components`,
/*
* Gatsby's data processing layer begins with “source”
* plugins. Here the site sources its data from Wordpress.
*/
{
resolve: "gatsby-source-wordpress",
options: {
/*
* The base URL of the Wordpress site without the trailingslash and the protocol. This is required.
* Example : 'gatsbyjsexamplewordpress.wordpress.com' or 'www.example-site.com'
*/
baseUrl: "wcldn2018talk.wpengine.com/",
// The protocol. This can be http or https.
protocol: "https",
// Indicates whether the site is hosted on wordpress.com.
hostingWPCOM: false,
useACF: true,
// Search and Replace Urls across WordPress content
// searchAndReplaceContentUrls: {
// sourceUrl: "https://wcldn2018talk.wpengine.com",
// replacementUrl: "https://wpheadless.indigotree.co.uk",
// },
},
},
]
};