-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
61 lines (59 loc) · 1.41 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
require(`dotenv`).config({
path: `.env.${process.env.NODE_ENV}`,
});
module.exports = {
siteMetadata: {
title: `Monitor Books`,
siteUrl: "https://monitorbooks.co.uk",
social: {
instagram: `monitorbooks`,
},
},
plugins: [
"gatsby-plugin-react-helmet",
"gatsby-transformer-sharp",
"gatsby-plugin-sharp",
"gatsby-plugin-image",
`gatsby-plugin-emotion`,
`gatsby-plugin-netlify`,
{
resolve: `gatsby-source-sanity`,
options: {
projectId: `djdzl2ed`,
dataset: `production`,
// a token with read permissions is required
// if you have a private dataset
token: process.env.SANITY_TOKEN,
watchMode: true,
useCdn: false,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `pages`,
path: `${__dirname}/src/pages/`,
},
},
{
resolve: `gatsby-plugin-typescript`,
options: {
isTSX: true, // defaults to false
jsxPragma: `jsx`, // defaults to "React"
allExtensions: true, // defaults to false
},
},
{
resolve: "@sentry/gatsby",
options: {
dsn: "https://e2760a181dfa48e1ba176da0b5059e69@o879658.ingest.sentry.io/5832534",
sampleRate: 0.7,
release: "monitor" + process.env.npm_package_version,
},
},
],
flags: {
DEV_SSR: false,
PARALLEL_SOURCING: false,
},
};