-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
143 lines (142 loc) · 4.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.com/docs/reference/config-files/gatsby-config/
*/
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
});
/**
* @type {import('gatsby').GatsbyConfig}
*/
module.exports = {
siteMetadata: {
title: `Avvocato civilista Milano | Studio legale Cassani & Marchetti`,
description: `Esperto in diritto civile, lo studio legale Cassani & Marchetti offre un servizio altamente qualificato con sedi a Milano e Paderno Dugnano.`,
image: `/logo_bg.jpg`,
siteUrl: `https://studiolegalecassanimarchetti.it/`,
},
plugins: [
`gatsby-plugin-image`,
"gatsby-plugin-postcss",
"gatsby-plugin-webpack-bundle-analyser-v2",
`gatsby-plugin-perf-budgets`,
{
resolve: "gatsby-source-prismic",
options: {
repositoryName: process.env.GATSBY_PRISMIC_REPO_NAME,
accessToken: process.env.PRISMIC_ACCESS_TOKEN,
customTypesApiToken: process.env.PRISMIC_CUSTOM_TYPES_API_TOKEN,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-manifest`,
options: {
icon: `src/images/icon.png`, // This path is relative to the root of the site.
},
},
{
resolve: `gatsby-plugin-google-gtag`,
options: {
// You can add multiple tracking ids and a pageview event will be fired for all of them.
trackingIds: [
"GA-TRACKING_ID", // Google Analytics / GA
],
// This object gets passed directly to the gtag config command
// This config will be shared across all trackingIds
gtagConfig: {
anonymize_ip: true,
},
// This object is used for configuration specific to this plugin
pluginConfig: {
// Puts tracking script in the head instead of the body
head: false,
// 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-iubenda-cookie-footer",
options: {
iubendaOptions: {
adPersonalization: false,
askConsentAtCookiePolicyUpdate: true,
floatingPreferencesButtonCaptionColor: "#071838",
floatingPreferencesButtonColor: "#FFFFFF",
floatingPreferencesButtonDisplay: "bottom-right",
perPurposeConsent: true,
purposes: "1,4",
siteId: 3034025,
whitelabel: false,
cookiePolicyId: 83445824,
lang: "it",
banner: {
acceptButtonCaptionColor: "#FFFFFF",
acceptButtonColor: "#0073CE",
acceptButtonDisplay: true,
backgroundColor: "#FFFFFF",
closeButtonDisplay: false,
customizeButtonCaptionColor: "#4D4D4D",
customizeButtonColor: "#DADADA",
customizeButtonDisplay: true,
explicitWithdrawal: true,
listPurposes: true,
position: "bottom",
rejectButtonCaptionColor: "#FFFFFF",
rejectButtonColor: "#0073CE",
rejectButtonDisplay: true,
textColor: "#000000",
usesThirdParties: false,
content:
"Noi e terze parti selezionate utilizziamo cookie o tecnologie simili per finalità tecniche e, con il tuo consenso, anche per le finalità di misurazione del traffico come specificato nella cookie policy (link presente nel footer).\n\nPuoi liberamente prestare, rifiutare o revocare il tuo consenso, in qualsiasi momento accedendo al pannello delle preferenze cliccando sull'icona verde in basso a destra.",
rejectButtonCaption: "Continua senza accettare",
},
},
},
},
{
resolve: `gatsby-source-iubenda-documents`,
options: {
documentIds: [`97694751`, `97694751/cookie-policy`],
},
},
/*to use google fonts
{
resolve: `gatsby-omni-font-loader`,
options: {
mode: "async",
enableListener: true,
preconnect: [
`https://fonts.googleapis.com`,
`https://fonts.gstatic.com`,
],
web: [
{
name: `Raleway`,
file: `https://fonts.googleapis.com/css2?family=Raleway:wght@300;400&display=swap`,
},
{
name: `Merriweather`,
file: `https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap`,
},
],
},
},*/
],
};