-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathgatsby-config.js
More file actions
56 lines (54 loc) · 1.28 KB
/
gatsby-config.js
File metadata and controls
56 lines (54 loc) · 1.28 KB
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
const req = require("require-yml");
const config = req("./config.yml");
require("dotenv").config({
path: `.env`
});
module.exports = {
siteMetadata: {
...config.siteMetadata
},
plugins: [
`gatsby-plugin-react-helmet`,
// Add typescript stack into webpack
`gatsby-plugin-typescript`,
"gatsby-plugin-styled-components",
{
resolve: "gatsby-plugin-react-svg",
options: {
include: /svg-icons/
}
},
{
resolve: `gatsby-plugin-typography`,
options: {
pathToConfigModule: `src/styled/typography`
}
},
{
resolve: "gatsby-source-graphql",
options: {
typeName: "GitHub",
fieldName: "github",
// Url to query from
url: "https://api.github.com/graphql",
// HTTP headers
headers: {
// Learn about environment variables: https://gatsby.app/env-vars
Authorization: `bearer ${process.env.GITHUB_TOKEN}`
},
// Additional options to pass to node-fetch
fetchOptions: {}
}
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/static/images/`
}
},
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`
// "gatsby-plugin-eslint"
]
};