-
Notifications
You must be signed in to change notification settings - Fork 5
/
gatsby-config.js
112 lines (112 loc) · 2.64 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
module.exports = {
siteMetadata: {
title: `ShellHub`,
description: `ShellHub is a modern SSH server for remotely accessing Linux devices via command line (using any SSH client) or web-based user interface.`,
author: `Will Moreira`,
siteUrl: `https://www.shellhub.io`,
},
plugins: [
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-plugin-styled-components`,
options : {
displayName : process.env.NODE_ENV !== 'production',
},
},
{
resolve: `gatsby-plugin-nprogress`,
options: {
color: `#667ACC`,
},
},
{
resolve: `gatsby-plugin-google-gtag`,
options: {
trackingIds: [
process.env.GA_ID,
],
gtagConfig: {
optimize_id: "OPT_CONTAINER_ID",
anonymize_ip: true,
cookie_expires: 0,
},
pluginConfig: {
head: false,
respectDNT: true,
exclude: ["/preview/**", "/do-not-track/me/too/"],
},
},
},
{
resolve: `gatsby-plugin-google-tagmanager`,
options: {
id: process.env.GTM_ID,
includeInDevelopment: true,
},
},
{
resolve: `gatsby-plugin-page-creator`,
options: {
path: `${__dirname}/src/pages`,
ignore: [`**/styles.js`],
},
},
{
resolve: "gatsby-plugin-react-svg",
options: {
rule: {
include: /assets\/.*\.svg/ // See below to configure properly
}
}
},
{
resolve: `gatsby-plugin-google-fonts`,
options: {
fonts: [
`prompt\:300,400,500,600,700,800,900`
],
display: 'swap'
}
},
{
resolve: `gatsby-plugin-canonical-urls`,
options: {
siteUrl: `https://www.shellhub.io`,
},
},
`gatsby-plugin-sitemap`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `ShellHub`,
short_name: `ShellHub`,
start_url: `/`,
background_color: `#272B33`,
theme_color: `#667ACC`,
display: `standalone`,
icon: `src/assets/icon.png`
},
},
`gatsby-plugin-offline`,
{
resolve: `gatsby-plugin-hotjar`,
options: {
id: 1786900,
sv: 6,
},
},
{
resolve: `gatsby-plugin-gdpr-cookies`,
options: {
googleAnalytics: {
trackingId: process.env.GA_ID,
cookieName: "google-analytics-cookie",
},
googleTagManager: {
trackingId: process.env.GTM_ID, // leave empty if you want to disable the tracker
},
environments: ["production", "development"],
},
},
],
}