-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
97 lines (97 loc) · 2.73 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
if (!process.env.GITHUB_ACTION) {
require("dotenv").config()
}
const parseNewLines = key => {
return typeof key === "string" ? key.replace(/\\n/g, "\n") : key
}
const privateKey = parseNewLines(process.env.FIREBASE_CONFIG_PRIVATE_KEY)
module.exports = {
siteMetadata: {
title: `Himadu's Website`,
description: `Himadu Sirimannna personal website.`,
author: `@himadu`,
siteUrl: `https://www.himadu.me`,
},
plugins: [
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Himadu's Website`,
short_name: `himadu`,
start_url: `/`,
background_color: `#663399`,
theme_color: `#663399`,
display: `minimal-ui`,
icon: `src/images/icon.png`, // This path is relative to the root of the site.
},
},
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
`gatsby-plugin-offline`,
// sitemap
`gatsby-plugin-sitemap`,
// Robots.txt
"gatsby-plugin-robots-txt",
// sass/scss
`gatsby-plugin-sass`,
// Page Load screen
{
resolve: `gatsby-plugin-nprogress`,
options: {
// Setting a color is optional.
color: `tomato`,
// Disable the loading spinner.
showSpinner: true,
},
},
// firebase theme
{
resolve: "gatsby-theme-firebase",
options: {
credentials: {
apiKey: "AIzaSyDrQEupm_MrUm1eXRHVL6SJ6fHyS89Yxak",
authDomain: "fir-32d38.firebaseapp.com",
databaseURL: "https://fir-32d38.firebaseio.com",
projectId: "fir-32d38",
storageBucket: "fir-32d38.appspot.com",
messagingSenderId: "785847414044",
appId: "1:785847414044:web:1a7589d76c9ae57f969ed9",
measurementId: "G-XVZXW5QXM6",
},
loginPath: "/user/login",
loginRedirectPath: "/contact",
socialLogins: ["google"],
},
},
// flamelink
{
resolve: "gatsby-source-flamelink",
options: {
firebaseConfig: {
projectId: "fir-32d38",
clientEmail:
privateKey: privateKey,
databaseURL: "https://fir-32d38.firebaseio.com",
storageBucket: "fir-32d38.appspot.com",
},
dbType: "cf",
environment: "production",
content: true,
populate: true,
navigation: true,
globals: false,
},
},
],
}