-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
63 lines (61 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
62
63
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.com/docs/gatsby-config/
*/
require('dotenv').config()
module.exports = {
/* Your site config here */
siteMetadata: {
title: `Aytch Official`,
description: `Official website of Aytch. Check out all new music, videos, beats, and production.`,
author: `Pretty Good Media`,
},
plugins: [
`gatsby-plugin-styled-components`,
'gatsby-plugin-postcss',
'gatsby-plugin-react-helmet',
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: 'gatsby-plugin-anchor-links',
options: {
offset: -80,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/static/images`,
},
},
{
resolve: 'gatsby-plugin-react-svg',
options: {
rule: {
include: /static/,
},
},
},
{
resolve: 'gatsby-source-sanity',
options: {
projectId: 'la9v6ouo',
dataset: 'beats',
// To enable preview of drafts, copy .env-example into .env,
// and add a token with read permissions
token: process.env.SANITY_TOKEN,
watchMode: true,
overlayDrafts: true,
},
},
`gatsby-transformer-json`,
{
resolve: `gatsby-source-filesystem`,
options: {
path: `./src/data/`,
},
},
],
}