-
Notifications
You must be signed in to change notification settings - Fork 14
/
gatsby-config.js
85 lines (85 loc) · 2.45 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
const path = require("path")
module.exports = {
siteMetadata: {
title: `Hacktoberfest`,
description: `Projeto opensource do Hacktoberfest promovido pela Globo.com`,
url: "https://hacktoberfest.globo.com",
author: `@globocom`,
images: {
opengraph: {
type: "image/png",
url: "images/share-image.png",
width: 1200,
height: 630
}
}
},
plugins: [
`gatsby-plugin-top-layout`,
`gatsby-plugin-material-ui`,
`gatsby-plugin-react-helmet`,
`gatsby-plugin-image`,
`gatsby-plugin-gatsby-cloud`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/themes/images`,
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `gatsby-starter-default`,
short_name: `starter`,
start_url: `/`,
background_color: `#663399`,
theme_color: `#663399`,
display: `minimal-ui`,
icon: `src/themes/images/hacktoberfest-icon.png`, // This path is relative to the root of the site.
},
},
{
resolve: `gatsby-plugin-alias-imports`,
options: {
alias: {
'@themes': path.resolve(__dirname, 'src/themes'),
'@components': path.resolve(__dirname, 'src/components'),
'@services': path.resolve(__dirname, 'src/services'),
'@helpers': path.resolve(__dirname, 'src/helpers'),
'@defs': path.resolve(__dirname, 'src/definitions')
},
extensions: [
"ts",
"tsx"
]
}
},
{
resolve: `gatsby-plugin-google-gtag`,
options: {
// You can add multiple tracking ids and a pageview event will be fired for all of them.
trackingIds: [
"G-6BD3V20X9M", // Google Analytics / GA
],
head: false,
// Setting this parameter is optional
anonymize: true,
// Setting this parameter is also optional
respectDNT: true,
// Avoids sending pageview hits from custom paths
exclude: ["/preview/**", "/do-not-track/me/too/"],
// Delays sending pageview hits on route update (in milliseconds)
pageTransitionDelay: 0,
defer: false,
// Any additional optional fields
sampleRate: 5,
siteSpeedSampleRate: 10,
// defaults to false
enableWebVitalsTracking: true,
},
},
],
}