-
Notifications
You must be signed in to change notification settings - Fork 1
/
gatsby-config.js
68 lines (66 loc) · 1.83 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
const fetch = require('node-fetch')
const { createHttpLink } = require('apollo-link-http')
require('dotenv').config({
path: `.env.${process.env.NODE_ENV}`,
})
module.exports = {
siteMetadata: {
title: 'mvfsillva',
description: 'Personal website of Marcus Silva, a front-end developer passionate for javascript, react, and new technologies. Currently work at Stone Banking, and dreams of traveling the world',
author: '@mvfsillva',
siteUrl: 'https://mvfsillva.dev',
},
plugins: [
'gatsby-plugin-react-helmet',
'gatsby-plugin-resolve-src',
'gatsby-plugin-styled-components',
'gatsby-plugin-twitter',
'gatsby-plugin-layout',
'gatsby-transformer-remark',
{
resolve: 'gatsby-plugin-robots-txt',
options: {
host: 'https://mvfsillva.dev',
sitemap: 'https://mvfsillva.dev/sitemap.xml',
policy: [{ userAgent: '*', allow: '/' }],
},
},
{
resolve: 'gatsby-plugin-manifest',
options: {
name: 'mvfsillva',
short_name: 'mvfsillva',
start_url: '/',
background_color: '#FFFFFF',
theme_color: '#FFFFFF',
display: 'fullscreen',
orientation: 'portrait',
icon: 'src/static/images/circle-lion.png',
},
},
{
resolve: 'gatsby-plugin-google-analytics',
options: {
trackingId: 'UA-136626463-1',
head: true,
anonymize: false,
respectDNT: true
},
},
{
resolve: 'gatsby-source-graphql',
options: {
fieldName: 'github',
typeName: 'GitHub',
createLink: () => createHttpLink({
uri: 'https://api.github.com/graphql',
headers: {
Authorization: `bearer ${process.env.GATSBY_GITHUB_TOKEN}`,
},
fetch,
}),
},
},
'gatsby-plugin-offline',
],
}