-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
47 lines (46 loc) · 1.3 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
require('dotenv').config({
path: '.env',
})
module.exports = {
siteMetadata: {
title: 'Gatsby + WordPress Starter',
},
plugins: [
'gatsby-plugin-react-helmet',
'gatsby-plugin-sass',
{
resolve: 'gatsby-source-wordpress',
options: {
// The base url to your WP site.
baseUrl: 'mylifeintheservice.wordpress.com',
// WP.com sites set to true, WP.org set to false
hostingWPCOM: true,
// The protocol. This can be http or https.
protocol: 'https',
// Use 'Advanced Custom Fields' Wordpress plugin
useACF: false,
auth: {
wpcom_app_clientSecret: process.env.WORDPRESS_SECRET,
wpcom_app_clientId: process.env.WORDPRESS_CLIENTID,
wpcom_user: process.env.WORDPRESS_USERNAME,
wpcom_pass: process.env.WORDPRESS_PASSWORD,
},
// Set to true to debug endpoints on 'gatsby build'
verboseOutput: false,
excludedRoutes: ['**/themes'],
},
},
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
{
// Removes unused css rules
resolve: 'gatsby-plugin-purgecss',
options: {
// Activates purging in gatsby develop
develop: true,
// Purge only the main css file
purgeOnly: ['/all.sass'],
},
},
],
}