-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
108 lines (107 loc) · 2.68 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
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
101
102
103
104
105
106
107
108
require('dotenv').config()
const { createProxyMiddleware } = require('http-proxy-middleware') //v1.x.x
module.exports = {
developMiddleware: app => {
app.use(
'/.netlify/functions/',
createProxyMiddleware({
target: 'http://localhost:9000',
pathRewrite: {
'/.netlify/functions/': '',
},
})
)
},
siteMetadata: {
title: 'coding.earth',
description:
'coding earth is a non profit association, based in Berlin. We want to improve the life of coders. We support you with community, knowledge, meetups, hackathons.',
author: '@coding_earth',
googleSiteVerification: 'talc7NDTVj5vV1Z5Y0lSeWyuE67cCpajQVMSQmK5xMw',
},
plugins: [
'gatsby-plugin-react-helmet',
'gatsby-plugin-netlify-cache',
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
path: `${__dirname}/src/images`,
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'data',
path: `${__dirname}/data/`,
},
},
'gatsby-plugin-styled-components',
{
resolve: 'gatsby-plugin-mdx',
options: {
mediaTypes: ['text/markdown', 'text/x-markdown'],
},
},
{
resolve: 'gatsby-plugin-global-context',
options: {
context: {
today: new Date(),
},
},
},
'gatsby-transformer-json',
'gatsby-transformer-sharp',
'gatsby-plugin-sharp',
{
resolve: 'gatsby-plugin-manifest',
options: {
name: 'coding earth',
short_name: 'coding earth',
start_url: '/',
background_color: '#333333',
theme_color: '#FF9900',
display: 'minimal-ui',
icon: 'src/images/coding_earth_x_120.png',
},
},
{
resolve: 'gatsby-source-graphql',
options: {
typeName: 'GraphCMS',
fieldName: 'graphcms',
refetchInterval: 960,
url: process.env.GRAPHCMS_ENDPOINT,
headers: {
Authorization: `Bearer ${process.env.GRAPHCMS_TOKEN}`,
},
},
},
{
resolve: 'gatsby-source-cloudinary',
options: {
cloudName: process.env.CLOUDINARY_CLOUDNAME,
apiKey: process.env.CLOUDINARY_API_KEY,
apiSecret: process.env.CLOUDINARY_API_SECRET,
resourceType: 'image',
tags: true,
maxResults: 500,
context: true,
//type: `upload`,
//prefix: `coding-earth/coding-berlin`,
transformations: {
maxeco: 'maxeco',
},
},
},
{
resolve: 'gatsby-plugin-react-svg',
options: {
rule: {
include: `${__dirname}/src/images/icons`,
},
},
},
],
}