-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.esm.js
100 lines (94 loc) · 2.55 KB
/
gatsby-config.esm.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
import dotenv from 'dotenv';
//
dotenv.config({ path: '.env' });
const isProd = process.env.NODE_ENV === 'production';
const token = process.env.SANITY_TOKEN;
//
export default {
siteMetadata: {
title: 'DSCVRD Magazine',
siteUrl: 'https://dscvrd.co/',
titleTemplate: '%s · DSCVRD Magazine',
description:
'International Music & Entertainment magazine bringing you the best from UK, Europe & America',
},
plugins: [
'gatsby-plugin-styled-components',
// `gatsby-plugin-scroll-reveal`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `DSCVRD Magazine`,
short_name: `DSCVRD`,
start_url: `/`,
background_color: `#0e0e0e`,
theme_color: `#ffef00`,
display: `standalone`,
icon: `./src/images/favicon.png`,
},
},
{
resolve: `gatsby-plugin-create-client-paths`,
options: {
prefixes: [
`/drop/*`,
`/format/*`,
`/kulture/*`,
`/noise/*`,
`/shred/*`,
],
},
},
{
resolve: 'gatsby-source-sanity',
options: {
projectId: process.env.SANITY_PROJECT_ID,
dataset: process.env.SANITY_DATASET,
token,
watchMode: !isProd,
overlayDrafts: !isProd && token,
},
},
{
resolve: 'gatsby-plugin-mailchimp',
options: {
endpoint:
'https://dscvrd.us7.list-manage.com/subscribe/post?u=c1a50ea00232012b07a8c48f5&id=c3ddd5c68f',
timeout: 3500,
},
},
{
resolve: `gatsby-plugin-nprogress`,
options: {
color: `#ffef00`,
showSpinner: false,
},
},
{
resolve: `gatsby-plugin-google-gtag`,
options: {
// You can add multiple tracking ids and a pageview event will be fired for all of them.
trackingIds: [
'G-5CL197TN3Q', // dscvrd.co
],
// This object is used for configuration specific to this plugin
pluginConfig: {
exclude: ['/preview/**'],
},
},
},
{
resolve: `gatsby-plugin-netlify`,
options: {
mergeSecurityHeaders: false, // boolean to turn off the default security headers
mergeLinkHeaders: false, // boolean to turn off the default gatsby js headers
mergeCachingHeaders: false, // boolean to turn off the default caching headers
},
},
`gatsby-plugin-svgr-svgo`,
`gatsby-plugin-sitemap`,
`gatsby-plugin-react-helmet`,
`gatsby-plugin-react-helmet-async`,
`gatsby-plugin-remove-serviceworker`,
],
};