-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgatsby-config.js
73 lines (71 loc) · 1.71 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
// Proxy port 9000 to talk to netlify-lambda
const proxy = require('http-proxy-middleware')
require('dotenv').config({
path: `.env.${process.env.NODE_ENV}`,
})
module.exports = {
developMiddleware: app => {
app.use(
'/.netlify/functions/',
proxy({
target: 'http://localhost:9000',
pathRewrite: {
'/.netlify/functions/': '',
},
})
)
},
siteMetadata: {
siteUrl: `https://allourformerselves.com`,
title: `FORMER SELVES`,
description: `FORMER SELVES`,
author: `Kevin Tansey`,
},
plugins: [
`gatsby-plugin-sitemap`,
{
resolve: `gatsby-source-contentful`,
options: {
spaceId: process.env.CF_SPACE_ID,
accessToken: process.env.CF_ACCESS_TOKEN,
},
},
{
resolve: `gatsby-plugin-snipcart`,
options: {
styles: '',
apiKey: process.env.SC_API_KEY,
autopop: true,
},
},
`gatsby-transformer-remark`,
`gatsby-plugin-styled-components`,
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: process.env.GA_TRACKING_ID,
head: true,
},
},
{
resolve: `gatsby-plugin-facebook-pixel`,
options: {
pixelId: process.env.FB_TRACKING_ID,
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.app/offline
// 'gatsby-plugin-offline',
`gatsby-plugin-netlify`,
],
}