-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
79 lines (75 loc) · 2.37 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
require('dotenv').config({
path: `.env.${process.env.NODE_ENV}`,
});
module.exports = {
siteMetadata: {
author: 'Bürgernetz Landkreis Pfaffenhofen e.V.',
title: 'pfaffenhofen-liefert.de',
description:
'Karte mit Geschäften im Landkreis Pfaffenhofen die während der COVID-19 Krise noch geöffnet haben',
email: '[email protected]',
teaserImage: "https://pfaffenhofen-liefert.de/preview.png",
share: {
text: 'pfaffenhofen-liefert.de',
hashtags: 'pfaffenhofen,Coronavirus,StayHome' // separate with commas,
},
menuLinks: [
{title: 'Start', link: '/', icon: 'map'},
{title: 'Hinzufügen', link: '/add', icon: 'plus'},
{title: 'Impressum', link: '/contact', icon: 'info'},
],
mapData: {
bounds: [
[11.3633, 48.5718],
[11.6843, 48.4886]
]
},
},
plugins: [
'gatsby-plugin-react-helmet',
`gatsby-plugin-sass`,
{
resolve: `gatsby-plugin-google-analytics`,
options: {
// The property ID; the tracking code won't be generated without it
trackingId: "XX-XXXXXXXXX-X",
},
},
{
resolve: "gatsby-plugin-firebase",
options: {
credentials: {
databaseURL: process.env.FIREBASE_URL
}
}
},
{
resolve: `gatsby-source-firebase`,
options: {
// point to the firebase private key downloaded
// credential: require('./secret/firebase-creds'),
credential: {
"type": process.env.FIREBASE_TYPE,
"project_id": process.env.FIREBASE_PROJECT_ID,
"private_key": process.env.FIREBASE_PRIVATE_KEY.replace(/\\n/g, '\n'),
"client_email": process.env.FIREBASE_CLIENT_EMAIL,
"client_id": process.env.FIREBASE_CLIENT_ID,
"auth_uri": process.env.FIREBASE_AUTH_URI,
"token_uri": process.env.FIREBASE_TOKEN_URI,
"auth_provider_x509_cert_url": process.env.AUTH_PROVIDER_X509_CERT_URL,
"client_x509_cert_url": process.env.CLIENT_X509_CERT_URL
},
// your firebase database root url
databaseURL: process.env.FIREBASE_URL,
// you can have multiple "types" that point to different paths
types: [
// if you're data is really simple, this should be fine too
{
type: "MapPoints",
path: "data/",
}
]
}
}
],
};