-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathgatsby-config.js
64 lines (61 loc) · 1.58 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
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.com/docs/gatsby-config/
*/
// Initialize dotenv
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`, // or '.env'
})
module.exports = {
siteMetadata: {
title: process.env.PROJ_NAME,
description: process.env.PROJ_DESCRIPTION,
author: process.env.PROJ_AUTHOR,
// siteUrl: `${process.env.SITE_URL}`
},
/* Your site config here */
plugins: [
'gatsby-plugin-react-helmet',
`gatsby-transformer-json`,
`gatsby-plugin-image`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/assets/images`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `data`,
path: `${__dirname}/src/data/`
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: process.env.PROJ_NAME,
start_url: `/`,
// background_color: `#0d1927`,
// theme_color: `#0d1927`,
// Enables "Add to Homescreen" prompt and disables browser UI (including back button)
// see https://developers.google.com/web/fundamentals/web-app-manifest/#display
display: `standalone`,
icon: `src/assets/images/leaf.svg` // This path is relative to the root of the site.
}
},
`gatsby-plugin-react-helmet`,
`gatsby-plugin-sass`,
{
resolve: "gatsby-plugin-react-svg",
options: {
rule: {
include: /\.inline\.svg$/
}
}
}
],
}