-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
44 lines (42 loc) · 1.13 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
const cfg = {
pathPrefix: `/gatsby-starter-hyperspace/`, // This path is subpath of your hosting https://domain/portfolio
siteMetadata: {
title: 'Interludio Costa Rica',
},
plugins: [
'gatsby-plugin-react-helmet',
{
resolve: `gatsby-plugin-manifest`,
options: {
name: 'Interludio Costa Rica',
short_name: 'starter',
start_url: '/',
background_color: '#663399',
theme_color: '#663399',
display: 'standalone',
icon: 'src/assets/img/logo_favicon.png', // This path is relative to the root of the site.
},
},
{
resolve: 'gatsby-source-graphql',
options: {
typeName: 'HASURA',
fieldName: 'hasura',
url: `https://interludio-information.herokuapp.com/v1/graphql`,
refetchInterval: 300,
},
},
'gatsby-plugin-sass',
'gatsby-plugin-offline',
],
};
if (process.env.CONTEXT === 'production') {
const googleAnalyticsCfg = {
resolve: 'gatsby-plugin-google-analytics',
options: {
trackingId: 'UA-37317421-1',
},
};
cfg.plugins.push(googleAnalyticsCfg);
}
module.exports = cfg;