-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathgatsby-config.ts
87 lines (84 loc) · 2.23 KB
/
gatsby-config.ts
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
import dotenv from "dotenv";
dotenv.config({ path: `.env` });
import type { GatsbyConfig } from "gatsby";
const config: GatsbyConfig = {
headers: [
{
source: "*",
headers: [
{
key: "Content-Security-Policy",
value: "frame-ancestors *;",
},
],
},
],
siteMetadata: {
title: `Que Faire de mes déchets & objets : votre assistant au tri et à la réduction des déchets`,
author: `LongueVieAuxObjets`,
description: `Vêtements, emballages, smartphones, médicaments… trouvez les réponses pour les réparer, les revendre d'occasion, les trier, les recycler, les éviter ou les jeter`,
siteUrl: `https://quefairedemesdechets.ademe.fr`,
image: "metaimage.png",
twitterUsername: "ademe",
},
plugins: [
{
resolve: `gatsby-plugin-sitemap`,
options: {
excludes: [`disableposthog`],
},
},
`@sentry/gatsby`,
`gatsby-plugin-styled-components`,
`gatsby-plugin-react-helmet`,
"gatsby-plugin-use-query-params",
`gatsby-plugin-root-import`,
`gatsby-plugin-sitemap`,
{
resolve: `gatsby-plugin-posthog`,
options: {
apiKey: process.env.POSTHOG_API_KEY,
apiHost: "https://eu.i.posthog.com",
autocapture: false,
head: true,
isEnabledDevMode: false,
initOptions: {
persistence: "memory",
},
},
},
{
resolve: "gatsby-plugin-web-font-loader",
options: {
custom: {
families: ["Marianne:n3,n5,n7,n8"],
urls: ["/fonts/fonts.css"],
},
},
},
{
resolve: "gatsby-plugin-matomo",
options: {
siteId: "82",
matomoUrl: "https://stats.beta.gouv.fr",
siteUrl: "https://quefairedemesdechets.ademe.fr",
disableCookies: true,
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Que Faire de mes Déchets`,
short_name: `QFDMD`,
start_url: `/`,
background_color: `#ffffff`,
theme_color: `#e42313`,
display: `minimal-ui`,
icon: "src/images/favicon.png",
},
},
"gatsby-plugin-offline",
"gatsby-plugin-webpack-bundle-analyser-v2",
],
};
export default config;