-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
85 lines (79 loc) · 2.38 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
let activeEnv =
process.env.GATSBY_ACTIVE_ENV || process.env.NODE_ENV || "development"
console.log(`Using environment config: '${activeEnv}'`)
require("dotenv").config({
path: `.env.${activeEnv}`,
})
const firebaseConfig = require(`./config/firebase-config.${process.env.GATSBY_FIREBASE_ENVIRONMENT}.json`)
module.exports = {
siteMetadata: {
title: `Responsible Leaders Network Activation West Asia North Africa`,
description: `Responsible Leaders Network Activation`,
url: `https://connect-wana.online`
},
pathPrefix: `/`,
plugins: [
{
resolve: `gatsby-plugin-manifest`,
options: {
name: "Responsible Leaders Network Activation",
short_name: "Responsible Leaders Network Activation",
start_url: "https://connect-wana.online",
background_color: "#000",
theme_color: "#00A6CE", // blue
display: "minimal-ui",
icon: "static/icon.png" // This path is relative to the root of the site.
},
},
`gatsby-plugin-react-helmet`,
{
resolve: "gatsby-source-firebase-nl",
options: {
credential: firebaseConfig.serviceAccountKey,
databaseURL: firebaseConfig.databaseURL,
types: [
{
type: "Pages",
path: "pages",
map: node => {
node.content = JSON.stringify(node.content);
return node
},
},
{
type: "Events",
path: "events"
},
{
type: "Materials",
path: "materials"
}
]
}
},
{
resolve: `gatsby-plugin-sass`,
options: {
precision: 8,
},
},
{
resolve: `gatsby-plugin-firebase-messaging`,
options: {
//required unless removeFirebaseServiceWorker == true
config: {
apiKey: firebaseConfig.apiKey,
appId: firebaseConfig.appId,
messagingSenderId: firebaseConfig.messagingSenderId,
projectId: firebaseConfig.projectId,
},
//optionally override the firebase version used by the service worker
firebaseVersion: '7.5.2', //e.g., '8.1.1'
//optionally disables development service worker
// disableDevelopment: true,
//optionally tells plugin to help unregistering/removing service worker
// removeFirebaseServiceWorker: true,
},
}
]
};