-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
79 lines (77 loc) · 1.84 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
const activeEnv =
process.env.GATSBY_ACTIVE_ENV || process.env.NODE_ENV || 'development'
require('dotenv').config({
path: `.env.${activeEnv}`,
})
module.exports = {
siteMetadata: {
title: 'Inhaí',
siteUrl: 'https://inhai.app',
},
plugins: [
'gatsby-plugin-styled-components',
'gatsby-plugin-sharp',
'gatsby-plugin-sitemap',
'gatsby-plugin-react-helmet',
{
resolve: '@chakra-ui/gatsby-plugin',
options: {
isResettingCSS: true,
isUsingColorMode: true,
},
},
{
resolve: 'gatsby-plugin-manifest',
options: {
icon: 'src/images/icon.png',
name: `Inhaí`,
short_name: `Inhaí`,
description: `App para mapear locais LGBTI+ friendly de forma colaborativa`,
start_url: `/`,
background_color: `#FFFFFF`,
theme_color: `#FFFFFF`,
orientation: 'portrait',
display: 'standalone',
},
},
{
resolve: `gatsby-plugin-create-client-paths`,
options: { prefixes: [`/app/*`] },
},
{
resolve: 'gatsby-plugin-offline',
options: {
workboxConfig: {
globPatterns: ['**/*.{js,jpg,png,html,css}'],
},
},
},
'gatsby-transformer-sharp',
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
path: `${__dirname}/src/images/`,
},
__key: 'images',
},
{
resolve: '@sentry/gatsby',
options: {
dsn: process.env.SENTRY_DSN,
sampleRate: 0.7,
},
},
{
resolve: `gatsby-plugin-gtag`,
options: {
// your google analytics tracking id
trackingId: process.env.GOOGLE_ANALYTICS,
// Puts tracking script in the head instead of the body
head: true,
// enable ip anonymization
anonymize: true,
},
},
],
}