-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
59 lines (53 loc) · 1.59 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
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 Gathering North America | 2020 Online Edition`,
description: `Responsible Leaders Gathering North America | 2020 Online Edition`,
url: `https://2020.gatheringnorthamerica.online`
},
pathPrefix: `/`,
plugins: [
{
resolve: `gatsby-plugin-manifest`,
options: {
name: "Responsible Leaders Gathering North America",
short_name: "Responsible Leaders Gathering North America",
start_url: "https://2020.gatheringnorthamerica.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
},
}
]
}
},
{
resolve: `gatsby-plugin-sass`,
options: {
precision: 8,
},
}
]
};