-
Notifications
You must be signed in to change notification settings - Fork 5
/
gatsby-config.js
98 lines (97 loc) · 2.33 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
const path = require("path")
module.exports = {
siteMetadata: {
title: `BicoccaHUB`,
description: `La più grande collezione di appunti del corso di informatica degli studenti della Bicocca`,
author: `@kowalski7cc, @amarusofia, @dlcgold, @daverhapsody`,
siteUrl: "https://bicoccahub.netlify.app",
version: "2.3.2",
repoUrl: "https://github.com/BicoccaHUB/bicoccahub",
},
plugins: [
`gatsby-plugin-react-helmet`,
`gatsby-transformer-yaml`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: path.join(__dirname, "src", "images"),
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `data`,
path: path.join(__dirname, "src", "data"),
},
},
{
resolve: `gatsby-plugin-canonical-urls`,
options: {
siteUrl: `https://bicoccahub.netlify.app`,
},
},
`gatsby-transformer-sharp`,
{
resolve: "gatsby-plugin-sharp",
options: {
useMozJpeg: true,
stripMetadata: true,
defaultQuality: 70,
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `BicoccaHUB`,
short_name: `BicoccaHUB`,
start_url: `/`,
lang: "it",
icon_options: {
purpose: "any maskable",
},
description:
"La più grande collezione di appunti del corso di informatica degli studenti della Bicocca",
background_color: `#008450`,
theme_color: `#fff`,
display: `standalone`,
icon: `src/favicon.svg`,
},
},
"gatsby-plugin-sass",
{
resolve: "gatsby-plugin-robots-txt",
options: {
policy: [
{
userAgent: "*",
allow: "/",
},
],
},
},
{
resolve: "gatsby-plugin-nprogress",
options: {
color: "green",
showSpinner: false,
},
},
"gatsby-image",
"gatsby-plugin-sitemap",
"gatsby-plugin-react-svg",
"gatsby-plugin-catch-links",
`gatsby-plugin-offline`,
{
resolve: "gatsby-plugin-netlify",
options: {
headers: {
"/sw.js": ["Cache-Control: no-cache"],
},
mergeSecurityHeaders: true,
mergeLinkHeaders: true,
mergeCachingHeaders: true,
},
},
],
}