-
Notifications
You must be signed in to change notification settings - Fork 1
/
gatsby-config.js
106 lines (104 loc) · 2.49 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
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.com/docs/gatsby-config/
*/
require("dotenv").config({ path: ".env" })
module.exports = {
/* Your site config here */
siteMetadata: {
backendUrl: process.env.BACKEND_URL || "/fallback/",
backendUrlWithCampaign: process.env.BACKEND_URL_WITH_CAMPAIGN || "/fallback/{mtm_placeholder}",
labUrl: process.env.LAB_URL || "/fallback/",
},
plugins: [
{
resolve: "gatsby-plugin-matomo",
options: {
siteId: "2",
matomoUrl: "https://makinacorpus.matomo.cloud",
siteUrl: "https://outdoorvision.fr/",
disableCookies: true,
},
},
"gatsby-plugin-sharp",
{
resolve: "gatsby-theme-material-ui",
options: {
stylesConfig: {
// disableAutoprefixing: true,
disableMinification: true,
},
webFontsConfig: {
fonts: {
google: [
{
family: "Montserrat",
variants: ["300", "400", "500", "700"],
},
],
},
},
},
},
{
resolve: "gatsby-plugin-create-client-paths",
options: {
prefixes: ["/compte/*"],
},
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "markdown-pages",
path: `${__dirname}/src/md-pages`,
},
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "markdown-blocks",
path: `${__dirname}/src/md-blocks`,
},
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "medias",
path: `${__dirname}/static/medias`,
},
},
{
resolve: "gatsby-transformer-remark",
options: {
plugins: [
{
resolve: "gatsby-remark-images",
options: {
maxWidth: 630,
linkImagesToOriginal: false,
wrapperStyle: "margin-left: 0",
disableBgImage: true,
},
},
"gatsby-remark-copy-linked-files",
"gatsby-remark-external-links",
],
},
},
{
resolve: "gatsby-plugin-netlify",
options: {
headers: {
"/*": [
// 'X-Frame-Options: DENY',
"X-XSS-Protection: 1; mode=block",
"X-Content-Type-Options: nosniff",
"Referrer-Policy: same-origin",
],
},
mergeSecurityHeaders: false,
},
},
],
}