-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
65 lines (65 loc) · 1.54 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
require("dotenv").config()
module.exports = {
siteMetadata: {
title: `Erwan Leboucher`,
description: `French software developer, currently living in Berlin, Germany.`,
author: `@eleboucher`,
siteUrl: "https://erwanleboucher.dev",
},
plugins: [
"gatsby-plugin-postcss",
"gatsby-plugin-image",
"gatsby-plugin-react-helmet",
"gatsby-plugin-sitemap",
{
resolve: "gatsby-plugin-react-svg",
options: {
rule: {
include: /\.svg$/,
},
},
},
"gatsby-plugin-sharp",
"gatsby-transformer-sharp",
{
resolve: "gatsby-source-filesystem",
options: {
name: "images",
path: "./src/images/",
},
__key: "images",
},
{
resolve: "gatsby-source-graphql",
options: {
typeName: "GitHub",
fieldName: "github",
url: "https://api.github.com/graphql",
headers: {
Authorization: `bearer ${process.env.GITHUB_TOKEN}`,
},
refetchInterval: 1800,
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Erwan Leboucher`,
short_name: `elebouch`,
start_url: `/`,
background_color: `#FFFFFF`,
theme_color: `#2C4251`,
display: `standalone`,
icon: `src/images/favicon.png`,
include_favicon: true,
},
},
"gatsby-plugin-offline",
{
resolve: `gatsby-plugin-layout`,
options: {
component: require.resolve(`${__dirname}/src/components/layout.js`),
},
},
],
}