-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgatsby-config.js
64 lines (61 loc) · 1.51 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
require('dotenv').config();
const path = require('path');
const siteMetadata = require('./src/assets/data/metadata.json');
module.exports = {
siteMetadata,
plugins: [
'gatsby-plugin-react-helmet',
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
path: `${__dirname}/src/assets/images`,
},
},
'gatsby-transformer-sharp',
'gatsby-plugin-sharp',
{
resolve: 'gatsby-plugin-manifest',
options: {
name: siteMetadata.title,
short_name: 'Github Fight',
start_url: '/',
background_color: '#B23F42',
theme_color: '#B23F42',
display: 'minimal-ui',
icon: 'src/assets/images/icon.png',
},
},
{
resolve: 'gatsby-source-graphql',
options: {
typeName: 'GitHub',
fieldName: 'github',
url: 'https://api.github.com/graphql',
headers: {
Authorization: `token ${process.env.GATSBY_GITHUB_TOKEN}`,
},
},
},
{
resolve: 'gatsby-plugin-page-creator',
options: {
path: `${__dirname}/src/pages`,
ignore: ['**/styles.ts'],
},
},
'gatsby-plugin-netlify',
'gatsby-plugin-preload-fonts',
'gatsby-plugin-netlify-cache',
'gatsby-plugin-styled-components',
'gatsby-plugin-typescript',
'gatsby-plugin-polished',
{
resolve: 'gatsby-plugin-root-import',
options: {
'~': path.join(__dirname, 'src'),
},
},
// `gatsby-plugin-offline`,
],
};