-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgatsby-config.js
109 lines (109 loc) · 3.2 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
module.exports = {
siteMetadata: {
title: `AEA Polimi`,
description: `Politecnico di Milano Automation Engineering Association. A no-profit organization made by students for students aimed at promoting the Automation Engineer through events and opportunities.`,
author: `@giuliovaccari`,
},
pathPrefix: "/aea",
plugins: [
`gatsby-plugin-react-helmet`,
`gatsby-theme-material-ui`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: 'gatsby-plugin-brotli',
options: {
extensions: ['css', 'html', 'js', 'dae']
}
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `aea`,
short_name: `aea`,
start_url: `/`,
background_color: `#ef6c00`,
theme_color: `#ef6c00`,
// display: `browser`,
icon: `src/images/aea_maskable.png`, // This path is relative to the root of the site.
icon_options: {
// For all the options available, please see the additional resources below.
purpose: `any maskable`,
},
},
},
{
resolve: '@deanc/gatsby-source-firestorer',
options: {
config: {
apiKey: "AIzaSyCN3qF77x39c9RtTO5_s4QMV3lQ589RdZU",
authDomain: "aeapolimiweb.firebaseapp.com",
databaseURL: "https://aeapolimiweb.firebaseio.com",
projectId: "aeapolimiweb",
storageBucket: "aeapolimiweb.appspot.com",
messagingSenderId: "252147138104",
appId: "1:252147138104:web:cc2a953476b0b77f65b0cd",
measurementId: "G-0D5Z9JD5XH"
},
types: [
{
type: 'News',
collection: 'news',
},
],
},
},
'gatsby-plugin-loadable-components-ssr',
{
resolve: `gatsby-plugin-netlify`,
options: {
headers: {
'/*': [
'X-Frame-Options: SAMEORIGIN',
// Range per stream su Safari
'Accept-Ranges: bytes'
],
"/static/*": [
"cache-control: public",
"cache-control: max-age=31536000",
"cache-control: immutable"
],
},
mergeSecurityHeaders: false,
},
},
// {
// resolve: `gatsby-plugin-gdpr-cookies`,
// },
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
// Script per evitare casini safari mp4, vedi
// https://dev.to/glukmann/how-to-get-videos-to-work-in-safari-with-gatsby-and-service-workers-4edc
{
resolve: `gatsby-plugin-offline`,
// options: {
// appendScript: require.resolve(`./sw-range-request-handler.js`),
// },
},
{
resolve: `gatsby-plugin-intl`,
options: {
// Directory with the strings JSON
path: `${__dirname}/src/intl`,
// Supported languages
languages: [`it`, `en`],
// Default site language
defaultLanguage: `en`,
// Redirects to `/en` in the route `/`
redirect: true,
},
},
],
}