Created
March 7, 2019 01:35
-
-
Save fostergn/5f2e27cd8637e9a84f358c6f730ee67f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('dotenv').config({ | |
path: `.env.${process.env.NODE_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: 'https://tracheal-sod.000webhostapp.com', | |
// 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: true, | |
auth: { | |
htaccess_user: process.env.HTACCESS_USER, | |
htaccess_pass: process.env.HTACCESS_PASSWORD, | |
htaccess_sendImmediately: false | |
}, | |
// Set to true to debug endpoints on 'gatsby build' | |
verboseOutput: true, | |
excludedRoutes: ["**/themes"], | |
}, | |
}, | |
'gatsby-plugin-sharp', | |
'gatsby-transformer-sharp', | |
'gatsby-plugin-purgecss', | |
'gatsby-plugin-netlify', // make sure to keep it last in the array | |
], | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment