-
Notifications
You must be signed in to change notification settings - Fork 1
/
gatsby-config.js
121 lines (120 loc) · 2.95 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
require('dotenv').config({
path: `.env`,
})
module.exports = {
siteMetadata: {
title: `No Code, No Bug`,
description: `No Code, No Bug. A blog with tech articles that might be helpful. Or not! A blog by Alexandre Le Lain.`,
author: `Alexandre Le Lain`,
siteUrl: 'https://nocode-nobug.com',
image: 'https://nocode-nobug.com/icons/favicon.png',
github: 'https://github.com/alexandre-lelain',
twitter_user: '@a_lelain',
twitter: 'https://mobile.twitter.com/a_lelain',
company: 'https://www.hellowork.com',
linkedin: 'https://linkedin.com/in/alexandre-lelain',
google: process.env.GOOGLE || '',
},
plugins: [
`gatsby-plugin-react-helmet`,
`gatsby-plugin-image`,
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
`gatsby-plugin-material-ui`,
`gatsby-plugin-styled-components`,
{
resolve: `gatsby-plugin-robots-txt`,
options: {
sitemap: `/sitemap.xml`,
},
},
{
resolve: `gatsby-plugin-sitemap`,
options: {
query: `
{
allSitePage {
nodes {
path
pageContext
}
}
site {
siteMetadata {
siteUrl
title
}
}
}`,
serialize: ({ path, pageContext: { updated } }) => {
return {
url: path,
lastmod: updated,
}
},
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `pages`,
path: `${__dirname}/src/pages`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
{
resolve: `gatsby-plugin-alias-imports`,
options: {
alias: {
components: `${__dirname}/src/components`,
images: `${__dirname}/src/images`,
templates: `${__dirname}/src/templates`,
styles: `${__dirname}/src/styles`,
utils: `${__dirname}/src/utils`,
icons: `${__dirname}/src/icons`,
lodash: `${__dirname}/node_modules/lodash-es`,
},
},
},
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: ['gatsby-remark-copy-linked-files'],
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `No Code, No Bug`,
short_name: `No Code, No Bug`,
start_url: `/`,
background_color: `#1976d2`,
theme_color: `#1976d2`,
display: `minimal-ui`,
icon: 'src/images/favicon.png',
icons: [
{
src: '/icons/favicon.png',
sizes: '512x512',
type: 'image/png',
purpose: 'any maskable',
},
],
},
},
`gatsby-plugin-offline`,
{
resolve: `gatsby-plugin-typescript`,
options: {
isTSX: true,
allExtensions: true,
},
},
],
}