-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathgatsby-config.js
68 lines (67 loc) · 2.39 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
module.exports = {
siteMetadata: {
postURLPrefix: 'blogs',
pageURLPrefix: '',
},
plugins: [
`gatsby-plugin-typescript`,
{
resolve: 'gatsby-plugin-graphql-codegen',
options: {
fileName: `types/graphql-types.d.ts`
}
},
"gatsby-plugin-react-helmet",
{
resolve: "gatsby-source-wordpress",
options: {
/*
* The base URL of the WordPress site without the trailingslash and the protocol. This is required.
* Example : 'demo.wp-api.org' or 'www.example-site.com'
*/
baseUrl: "b5d85ac952f05c2bcb7e0b42979eff431beac2f1.hl-a.getshifter.co",
// The protocol. This can be http or https.
protocol: "https",
// The rest api route prefix that your WordPress site is using.
// Sometimes this is modified by WordPress plugins.
// If not set, it uses the default of "wp-json"
restApiRoutePrefix: "wp-json",
// Indicates whether the site is hosted on wordpress.com.
// If false, then the assumption is made that the site is self hosted.
// If true, then the plugin will source its content on wordpress.com using the JSON REST API V2.
// If your site is hosted on wordpress.org, then set this to false.
hostingWPCOM: false,
// If useACF is true, then the source plugin will try to import the WordPress ACF Plugin contents.
// This feature is untested for sites hosted on wordpress.com.
// Defaults to true.
useACF: false,
// Set verboseOutput to true to display a verbose output on `npm run develop` or `npm run build`
// It can help you debug specific API Endpoints problems.
verboseOutput: false,
// Set how many pages are retrieved per API request.
perPage: 100,
// Search and Replace Urls across WordPress content.
// searchAndReplaceContentUrls: {
// sourceUrl: "https://central.wordcamp.org",
// replacementUrl: "https://localhost:8000",
// },
includedRoutes: [
"**/posts",
"**/pages",
]
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `WPGatsby Example`,
short_name: `WPGatsby`,
start_url: `/`,
background_color: `#ffffff`,
theme_color: `#00bfff`,
display: `standalone`,
},
},
`gatsby-plugin-offline`,
],
}