-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
64 lines (61 loc) · 1.65 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
require('dotenv').config({
path: `.env.${process.env.NODE_ENV}`,
})
module.exports = {
siteMetadata: {
title: `COA Gatsby for Sanity`,
description: `Gatsby frontend for Sanity CMS`,
author: `@jedifunk`,
},
plugins: [
`gatsby-plugin-react-helmet`,
`gatsby-plugin-image`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/assets/images`,
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: 'gatsby-source-sanity',
options: {
projectId: process.env.GATSBY_PROJECT_ID,
dataset: process.env.GATSBY_DATASET,
apiVersion: process.env.GATSBY_API_VERSION,
watchMode: process.env.GATSBY_WATCHMODE,
// a token with read permissions is required
// if you have a private dataset
//token: process.env.MY_SANITY_TOKEN,
// If the Sanity GraphQL API was deployed using `--tag <name>`,
// use `graphqlTag` to specify the tag name. Defaults to `default`.
//graphqlTag: 'default',
},
},
{
resolve: 'gatsby-plugin-sanity-image',
options: {
projectId: process.env.GATSBY_PROJECT_ID,
dataset: process.env.GATSBY_DATASET,
customImageTypes: ["SanityImageFull"],
}
},
{
resolve: `gatsby-source-instagram-all`,
options: {
access_token: process.env.GATSBY_IG_TOKEN,
limit: 9,
}
},
{
resolve: "gatsby-plugin-google-tagmanager",
options: {
id: "GTM-TC542ZZ",
includeInDevelopment: false,
enableWebVitalsTracking: true,
},
}
],
}