Skip to content

Commit

Permalink
Add the projects from contentful
Browse files Browse the repository at this point in the history
  • Loading branch information
khriztianmoreno committed Sep 25, 2019
1 parent 6c8116d commit e4f86be
Show file tree
Hide file tree
Showing 9 changed files with 562 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .env.example
@@ -0,0 +1,2 @@
CONTENTFUL_ACCESS_TOKEN=************************
CONTENTFUL_SPACE_ID=*************************
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -67,3 +67,5 @@ yarn-error.log
.pnp.js
# Yarn Integrity file
.yarn-integrity

.env.development
11 changes: 11 additions & 0 deletions gatsby-config.js
@@ -1,3 +1,7 @@
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
})

module.exports = {
siteMetadata: {
title: `Gatsby Default Starter`,
Expand All @@ -6,6 +10,13 @@ module.exports = {
},
plugins: [
'gatsby-plugin-theme-ui',
{
resolve: `gatsby-source-contentful`,
options: {
spaceId: process.env.CONTENTFUL_SPACE_ID,
accessToken: process.env.CONTENTFUL_ACCESS_TOKEN,
},
},
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
Expand Down

0 comments on commit e4f86be

Please sign in to comment.