-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
128 lines (127 loc) · 3.67 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
122
123
124
125
126
127
128
module.exports = {
siteMetadata: {
title: `Anna Ozola`,
description: `Anna Ozola Portfolio`,
author: `Anna Ozola`,
copyright: "Copyright 2023 Anna Ozola",
siteUrl: `https://www.annaozola.com`,
},
plugins: [
{
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-LZJZC6ZZLD", // Google Analytics / GA
],
gtagConfig: {
optimize_id: "OPT_CONTIANER_ID",
anonymize_ip: true,
cookie_expires: 0,
},
// This object is used for configuration specific to this plugin
pluginConfig: {
// Puts tracking script in the head instead of the body
head: true,
// Setting this parameter is also optional
respectDNT: true,
// Avoids sending pageview hits from custom paths
exclude: ["/preview/**", "/do-not-track/me/too/"],
// Defaults to https://www.googletagmanager.com
// origin: "YOUR_SELF_HOSTED_ORIGIN",
// Delays processing pageview events on route update (in milliseconds)
// delayOnRouteUpdate: 0,
},
},
},
{
resolve: `gatsby-plugin-gdpr-cookies`,
options: {
googleAnalytics: {
trackingId: "G-LZJZC6ZZLD", // leave empty if you want to disable the tracker
cookieName: "gatsby-gdpr-google-analytics", // default
anonymize: true, // default
},
environments: ["production", "development"],
},
},
`gatsby-plugin-netlify`,
`gatsby-plugin-webpack-bundle-analyser-v2`,
`gatsby-plugin-sass`,
`gatsby-plugin-react-helmet`,
`gatsby-plugin-image`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
quality: 100,
path: `${__dirname}/src/images`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `projects`,
path: `${__dirname}/src/projects`,
},
},
`gatsby-plugin-mdx`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
`gatsby-plugin-catch-links`,
{
resolve: `gatsby-remark-copy-linked-files`,
options: {},
},
`gatsby-remark-images`,
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-images`,
options: {
quality: 100,
maxWidth: 1200,
path: `${__dirname}/src/images`,
},
},
],
},
},
{
resolve: `gatsby-plugin-mdx`,
options: {
plugins: [`gatsby-remark-images`],
extensions: [`.mdx`, `.md`, `.markdown`],
gatsbyRemarkPlugins: [
{
resolve: `gatsby-remark-images`,
options: {
quality: 100,
maxWidth: 4096,
path: `${__dirname}/src/images`,
},
},
],
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `gatsby-starter-default`,
short_name: `starter`,
start_url: `/`,
background_color: `#663399`,
// This will impact how browsers show your PWA/website
// https://css-tricks.com/meta-theme-color-and-trickery/
// theme_color: `#663399`,
display: `minimal-ui`,
icon: `src/images/gatsby-icon.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`,
],
}