-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgatsby-config.js
106 lines (106 loc) · 2.89 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
module.exports = {
siteMetadata: {
title: `a-to-z`,
siteUrl: `https://www.yourdomain.tld`,
},
plugins: [
/**
* We need this plugin so that it adds the "File.publicURL" to our site
* It will allow us to access static url's for assets like PDF's
*
* See https://www.gatsbyjs.org/packages/gatsby-source-filesystem/ for more info
*/
{
resolve: `gatsby-source-filesystem`,
options: {
name: `src`,
path: `${__dirname}/src/`,
},
},
/**
* The following two plugins are required if you want to use Gatsby image
* See https://www.gatsbyjs.com/docs/gatsby-image/#setting-up-gatsby-image
* if you're curious about it.
*/
`gatsby-transformer-sharp`,
{
resolve: `gatsby-plugin-sharp`,
options: {
defaults: {
placeholder: `none`,
backgroundColor: `transparent`,
},
},
},
`gatsby-plugin-image`,
{
// See https://www.gatsbyjs.com/plugins/gatsby-plugin-manifest/?=gatsby-plugin-manifest
resolve: `gatsby-plugin-manifest`,
options: {
name: `tio | Make your business tio-powered`,
short_name: `tio.ist`,
start_url: `/`,
background_color: `#ffffff`,
theme_color: `#663399`,
display: `minimal-ui`,
icon: `src/images/icon.png`,
},
},
`gatsby-plugin-postcss`,
`gatsby-plugin-react-helmet`,
`gatsby-transformer-remark`,
{
resolve: `gatsby-plugin-google-analytics`,
options: {
// The property ID; the tracking code won't be generated without it
trackingId: "UA-127688828-1",
// Defines where to place the tracking script - `true` in the head and `false` in the body
head: false,
// Setting this parameter is optional
anonymize: true,
// Setting this parameter is also optional
respectDNT: true,
// Delays sending pageview hits on route update (in milliseconds)
pageTransitionDelay: 0,
// Defers execution of google analytics script after page load
defer: false,
// defaults to false
enableWebVitalsTracking: true,
},
},
{
resolve: `gatsby-plugin-facebook-pixel`,
options: {
pixelId: "221938399918609",
},
},
{
resolve: "gatsby-plugin-sitemap",
options: {
query: `
{
allSitePage {
nodes {
path
}
}
}
`,
resolveSiteUrl: () => "https://tio.ist",
resolvePages: ({
allSitePage: { nodes: allPages }
}) => {
return allPages.map(page => {
return { ...page }
})
},
serialize: ({ path, modifiedGmt }) => {
return {
url: path,
lastmod: modifiedGmt,
}
},
},
},
],
}