-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
79 lines (78 loc) · 2.04 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
/**
* @type {import('gatsby').GatsbyConfig}
*/
module.exports = {
siteMetadata: {
title: `Frances Mildred`,
siteUrl: 'https://h8ow0czjuzl799dxcybtqzka2.js.wpenginepowered.com',
author: 'Full Metal Workshop LLC'
},
// pathPrefix: "/clients/frances-mildred-staging/",
plugins: [
{
resolve: 'gatsby-source-wordpress',
options: {
url: "https://francesmildred.wpenginepowered.com/graphql",
develop: {
hardCacheMediaFiles: true
},
verbose: true,
// type: {
// MediaItem: {
// localFile: {
// excludeByMimeTypes: [`video/mp4`]
// }
// }
// }
}
},
{
resolve: 'gatsby-theme-headless-wordpress',
options: {
templatesPath: `./src/templates`,
useACF: true,
excludedRoutes: ['**/taxonomy/**', '**/category/**', '**/tag/**'],
type: {
__all: {
postsPerPage: 999
},
page: {
postsPerPage: 999
}
},
createClientPages: ({ actions }) => {
const { createPage } = actions;
// Add a client-only route for the custom 404 page
createPage({
path: '/404',
component: require.resolve(`./src/templates/page/404/default.js`),
});
}
}
},
"gatsby-plugin-image", "gatsby-plugin-sharp", "gatsby-transformer-sharp", "gatsby-plugin-postcss", /*"gatsby-plugin-google-gtag", */"gatsby-plugin-sitemap",
{
resolve: 'gatsby-plugin-manifest',
options: {
"icon": "src/assets/images/icon.png"
}
}, "gatsby-plugin-mdx", {
resolve: 'gatsby-source-filesystem',
options: {
"name": "images",
"path": "./src/assets/images/"
},
__key: "images"
}, {
resolve: 'gatsby-source-filesystem',
options: {
name: "pages",
path: "./src/pages/"
},
__key: "pages"
}, {
resolve: 'gatsby-plugin-fastify',
options: {},
}
]
};