This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
86 lines (85 loc) · 2.26 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
const { neufNormalizer } = require('./src/wordpress')
module.exports = {
siteMetadata: {
title: 'Det Norske Studentersamfund',
},
plugins: [
'gatsby-plugin-react-helmet',
'gatsby-plugin-sass',
{
resolve: 'gatsby-source-filesystem',
options: {
path: `${__dirname}/gatsby-config.js`,
},
},
{
resolve: 'gatsby-source-wordpress',
options: {
// The base url to your WP site.
baseUrl: 'studentersamfundet.no',
// WP.com sites set to true, WP.org set to false
hostingWPCOM: false,
// The protocol. This can be http or https.
protocol: 'https',
// Use 'Advanced Custom Fields' Wordpress plugin
useACF: false,
auth: {},
// Set to true to debug endpoints on 'gatsby build'
verboseOutput: false,
includedRoutes: [
'**/*/*/associations',
'**/*/*/categories',
'**/*/*/events',
'**/*/*/event_types',
'**/*/*/event_organizers',
'**/*/*/posts',
'**/*/*/pages',
'**/*/*/media',
'**/*/*/tags',
'**/*/*/taxonomies',
'**/*/*/users',
'**/*/*/venues',
],
excludedRoutes: [
'/yoast/**',
'**/*/*/comments',
'**/*/*/settings',
'**/*/*/users/me',
],
normalizer: neufNormalizer,
},
},
{
resolve: 'gatsby-plugin-google-analytics',
options: {
trackingId: 'UA-52914-1',
head: false,
anonymize: true,
},
},
'gatsby-plugin-catch-links',
'gatsby-plugin-sharp',
{
resolve: 'gatsby-transformer-sharp',
options: {
// we can silence this if we know we're doing it right
// https://github.com/gatsbyjs/gatsby/issues/21776
checkSupportedExtensions: false,
},
},
{
resolve: 'gatsby-plugin-canonical-urls',
options: {
siteUrl: 'https://studentersamfundet.no',
},
},
// {
// resolve: 'gatsby-plugin-purgecss',
// options: {
// printRejected: true,
// whitelistPatterns: [/^(.*)-content(.*)/, /^event-grouped-by-(.*)/],
// },
// },
'gatsby-plugin-netlify', // make sure to keep it last in the array
],
}