/
gatsby-config.js
62 lines (61 loc) · 1.75 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
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
})
module.exports = {
siteMetadata: {
title: `Firmansyah Yanuar`,
description: `Personal websites of Firmansyah Yanuar (Student, Developer, Designer)`,
author: `fyfirman`,
},
plugins: [
`gatsby-plugin-sass`,
`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: `fyfirman-website`,
short_name: `fyfirman`,
start_url: `/`,
background_color: `#000`,
theme_color: `#000`,
display: `minimal-ui`,
icon: `src/images/logo.svg`, // This path is relative to the root of the site.
},
},
`gatsby-plugin-dark-mode`,
{
resolve: `gatsby-plugin-hotjar`,
options: {
includeInDevelopment: false, // optional parameter to include script in development
id: process.env.HOTJAR_ID,
sv: process.env.HOTJAR_SNIPPET_VERSION,
},
},
{
resolve: "gatsby-plugin-firebase",
options: {
credentials: {
apiKey: process.env.API_KEY,
authDomain: process.env.AUTH_DOMAIN,
databaseURL: process.env.DATABASE_URL,
projectId: process.env.PROJECT_ID,
storageBucket: process.env.STORAGE_BUCKET,
messagingSenderId: process.env.MESSAGE_SENDER_ID,
appId: process.env.APP_ID
}
}
}
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
// `gatsby-plugin-offline`,
],
}