forked from graphprotocol/everest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
82 lines (78 loc) · 1.88 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
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.org/docs/gatsby-config/
*/
const activeEnv =
process.env.GATSBY_ACTIVE_ENV || process.env.NODE_ENV || 'development'
console.log(`Using environment config: '${activeEnv}'`)
require('dotenv').config({
path: `.env.${activeEnv}`,
})
module.exports = {
pathPrefix: '__GATSBY_IPFS_PATH_PREFIX__',
plugins: [
'gatsby-plugin-ipfs',
'gatsby-plugin-react-helmet',
{
resolve: 'gatsby-plugin-theme-ui',
options: {
stylesProvider: {
injectFirst: true,
},
},
},
{
resolve: `gatsby-plugin-layout`,
options: {
component: require.resolve(`./src/components/Layout/`),
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
path: `${__dirname}/src/images`,
},
},
{
resolve: 'gatsby-plugin-react-svg',
},
{
resolve: `gatsby-plugin-prefetch-google-fonts`,
options: {
fonts: [
{
family: 'Space Mono',
variants: ['400', '400i', '700', '900', '900i'],
},
],
},
},
{
resolve: 'gatsby-plugin-eslint',
options: {
test: /\.js$|\.jsx$/,
exclude: /(node_modules|.cache|public|dist)/,
stages: ['develop'],
options: {
emitWarning: true,
failOnError: false,
failOnWarning: false,
},
parserOptions: {
ecmaFeatures: {
jsx: true,
modules: true,
},
},
},
},
],
siteMetadata: {
title: 'Everest',
description: 'A shared registry of crypto projects curated by its members.',
url: 'https://everest.link', // No trailing slash allowed!
image: 'https://everest.link/mountain.jpg', // Path to your image you placed in the 'static' folder
},
}