Skip to content

Commit

Permalink
updated comments on gatsby-config
Browse files Browse the repository at this point in the history
  • Loading branch information
pablovila committed Feb 25, 2019
1 parent d976e32 commit 981d2fa
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,27 @@ module.exports = {
{
resolve: "gatsby-source-wordpress",
options: {
//Default options are for WP sites hosted on wordpress.com
//For sites self hosted and other options check:
//https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-source-wordpress
baseUrl: "gatsbystartercommunity.wordpress.com",
protocol: "https",
hostingWPCOM: true,
useACF: false,
auth: {
//Create a file named .env in root folder of your project
//And add there your clientId, clientSecret, WordPressUser and WordPressPassword
//More info about environment variables: https://www.gatsbyjs.org/docs/environment-variables
//More info about communicate with wordpress.com API: https://developer.wordpress.com/apps/
wpcom_app_clientId: process.env.WORDPRESS_CLIENT_ID,
wpcom_app_clientSecret: process.env.WORDPRESS_CLIENT_SECRET,
wpcom_user: process.env.WORDPRESS_USER,
wpcom_pass: process.env.WORDPRESS_PASSWORD
},
searchAndReplaceContentUrls: {
//Nested urls won't work. If you find a solution, please fill a PR request
sourceUrl: "https://gatsbystartercommunity.wordpress.com",
replacementUrl: "https://gatsbystartercommunity.netlify.com"
}
}
},
Expand Down

0 comments on commit 981d2fa

Please sign in to comment.