/
gatsby-config.js
42 lines (41 loc) · 1.22 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
// 1. custom env var
// 2. netlify deployment
// 3. main site
const siteUrl = process.env.SITE_URL || process.env.DEPLOY_URL || 'https://nivo.rocks' // no trailing slash
module.exports = {
siteMetadata: {
title: `nivo`,
description: `Supercharged React dataviz components.`,
siteUrl,
og: {
siteName: 'nivo',
twitterCreator: '@benitteraphael',
},
},
plugins: [
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `assets`,
path: `${__dirname}/src/assets`,
},
},
`gatsby-plugin-image`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
`gatsby-plugin-styled-components`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `nivo`,
short_name: `nivo`,
start_url: `/`,
background_color: `#3c91e8`,
theme_color: `#3c91e8`,
display: `minimal-ui`,
icon: `src/assets/icons/nivo-icon.png`, // This path is relative to the root of the site.
},
},
],
}