-
Notifications
You must be signed in to change notification settings - Fork 2
/
gatsby-config.js
102 lines (102 loc) · 2.39 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`
});
module.exports = {
// base site data
siteMetadata: {
title: `Muguku`,
owner: `Macharia Muguku`,
description: `A Macharia Muguku software engineer portfolio website`,
author: `Macharia Muguku <[email protected]>`,
// don't use trailing slash
siteUrl: "http://muguku.co.ke",
social: {
twitter: "@charmgk"
},
keywords: [
"macharia muguku",
"macharia",
"muguku",
"software engineer",
"full-stack developer",
"software",
"engineer",
"developer",
"fullstack",
"front-end",
"frontend",
"minimalist",
"gatsby",
"portfolio",
"react",
"reactjs",
"react.js",
"node",
"nodejs",
"node.js",
"golang",
"go",
"docker",
"react",
"nginx",
"graphql",
"mpesa"
]
},
plugins: [
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
`gatsby-plugin-react-helmet`,
`gatsby-plugin-styled-components`,
// github graphql api
{
resolve: "gatsby-source-graphql",
options: {
typeName: "GITHUB",
fieldName: "github",
url: "https://api.github.com/graphql",
headers: {
Authorization: `bearer ${process.env.GATSBY_PORTFOLIO_GITHUB_TOKEN}`
}
}
},
// medium REST api
{
resolve: `gatsby-source-medium`,
options: {
username: `@muguku`
}
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`
}
},
// auto generate a '.htaccess' file for Apache hosting
{
resolve: "gatsby-plugin-htaccess",
options: {
// force the site name to start with 'www'
www: true
}
},
// PWA manifest
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `macharia_muguku_react_gatsby_portfolio`,
short_name: `portfolio`,
start_url: `/`,
background_color: `#000000`,
theme_color: `#000000`,
display: `minimal-ui`,
icon: `src/images/512x512.png` // This path is relative to the root of the site.
}
},
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
`gatsby-plugin-offline`
]
};