generated from ssellas/gatsby-material-ui-website-starter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gatsby-config.js
110 lines (108 loc) · 3.45 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
require('dotenv').config({
path: `.env.${process.env.NODE_ENV}`,
});
const siteUrl = 'https://covid.quintessential.gr/';
module.exports = {
siteMetadata: {
title: 'Ενημέρωση για τον COVID-19',
description: 'Live Data, ενημέρωση, πρόληψη, αλήθειες και μύθοι για τον ιο & εργαλεία για απομακρυσμένη εργασία',
author: `Quintessential SFT`,
image: `${siteUrl}img/COVID-cover-image.png`,
siteUrl: siteUrl,
},
plugins: [
{
resolve: `gatsby-plugin-react-redux`,
options: {
// [required] - path to your createStore module
pathToCreateStoreModule: './src/redux/store',
// [optional] - options passed to `serialize-javascript`
// info: https://github.com/yahoo/serialize-javascript#options
// will be merged with these defaults:
serialize: {
space: 0,
isJSON: true,
unsafe: false,
},
// [optional] - if true will clean up after itself on the client, default:
cleanupOnClient: true,
// [optional] - name of key on `window` where serialized state will be stored, default:
windowKey: '__PRELOADED_STATE__',
},
},
'gatsby-plugin-top-layout',
{
resolve: 'gatsby-plugin-material-ui',
// If you want to use styled components you should change the injection order.
options: {
// stylesProvider: {
// injectFirst: true,
// },
},
},
// If you want to use styled components you should add the plugin here.
// 'gatsby-plugin-styled-components',
'gatsby-plugin-react-helmet',
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Ενημέρωση για τον COVID-19`,
short_name: `COVID-19`,
start_url: `/`,
background_color: `#fff`,
theme_color: `#FFC600`,
display: `standalone`,
icon: `src/images/COVID-icon.svg`, // This path is relative to the root of the site.
},
},
{
resolve: `gatsby-plugin-nprogress`,
options: {
color: `#FFC600`,
showSpinner: false,
},
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
// The property ID; the tracking code won't be generated without it
trackingId: `UA-160715173-1`,
// Defines where to place the tracking script - `true` in the head and `false` in the body
head: true,
// Setting this parameter is optional
anonymize: true,
// Setting this parameter is also optional
respectDNT: true,
},
},
{
resolve: 'gatsby-source-prismic',
options: {
repositoryName: 'covid',
accessToken: process.env.PRISMIC_ACCESS_TOKEN,
lang: '*',
schemas: {
news: require('./src/schemas/news'),
government: require('./src/schemas/government'),
mythbusters: require('./src/schemas/mythbusters'),
work_from_home: require('./src/schemas/work-from-home'),
scientific: require('./src/schemas/scientific'),
statistics: require('./src/schemas/statistics'),
}
},
},
{
resolve: "gatsby-plugin-netlify",
options: {
mergeSecurityHeaders: false,
headers: {
"/*": [
"X-Frame-Options: allowall",
],
},
},
},
],
};