-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
71 lines (69 loc) · 1.86 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.org/docs/gatsby-config/
*/
require("dotenv").config({
path: `.env`,
})
module.exports = {
/* Your site config here */
// Plugins
plugins: [
"gatsby-plugin-sass",
`gatsby-plugin-smoothscroll`,
// Contentful source plugin
// This plugin allows this website to source data from contentful CMS
// The spaceID and accessToken are exposed but will be hidden in an .env file in the future
{
resolve: "gatsby-source-contentful",
options: {
spaceId: process.env.SPACE_ID,
accessToken: process.env.ACCESS_TOKEN
},
},
{
resolve: "gatsby-plugin-manifest",
options: {
name: "Blockpass Identity Lab",
short_name: "BIL",
start_url: "/",
background_color: "#f7f0eb",
theme_color: "#a2466c",
display: "standalone",
icon: "src/img/favicon.png",
},
},
`gatsby-plugin-twitter`,
// Sourcing from github. (A temporary repository made by martin which contains 2 issues to be pulled)
// Github
{
resolve: 'gatsby-source-github',
options: {
headers: {
Authorization: `Bearer ${process.env.GITHUB_API_KEY}` // https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/
},
queries: [
`{
repository(owner: "blockpass-identity-lab", name: "student-projects") {
issues(last: 20, states: OPEN) {
edges {
node {
id
author{
url
login
}
bodyHTML
title
url
}
}
}
}
}`,
],
},
},
],
}