Permalink
Browse files

Configure WordPress plugin

  • Loading branch information...
booyaa committed Dec 30, 2018
1 parent bdeb843 commit 3ee8aae5e0c8d6f45127963f776fd1c9358dd647
Showing with 18 additions and 0 deletions.
  1. +18 −0 gatsby-config.js
@@ -1,10 +1,28 @@
require('dotenv').config()
module.exports = {
siteMetadata: {
title: `Gatsby x WordPress`,
description: `Kick off your next, great Gatsby project with this default starter. This barebones starter ships with the main Gatsby configuration files you might need.`,
author: `@gatsbyjs`,
},
plugins: [
{
resolve: `gatsby-source-wordpress`,
options: {
baseUrl: process.env.WORDPRESS_BASE_URL,
protocol: process.env.WORDPRESS_PROTOCOL,
hostingWPCOM: process.env.WORDPRESS_HOSTING_WPCOM === 'true',
useACF: process.env.WORDPRESS_USE_ACF === 'true',
verboseOutput: process.env.WORDPRESS_VERBOSE_OUTPUT === 'true',
auth: {
wpcom_app_clientSecret: process.env.WORDPRESS_CLIENT_SECRET,
wpcom_app_clientId: process.env.WORDPRESS_CLIENT_ID,
wpcom_user: process.env.WORDPRESS_USER,
wpcom_pass: process.env.WORDPRESS_PASSWORD,
},
includedRoutes: ['**/posts', '**/pages', '**/tags'],
},
},
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,

0 comments on commit 3ee8aae

Please sign in to comment.