This repository has been archived by the owner on Mar 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
gatsby-config.js
82 lines (77 loc) · 1.89 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
const queries = require(`./src/utils/algolia`)
require(`dotenv`).config()
const remarkPlugins = [
{
resolve: `gatsby-remark-images-contentful`,
options: {
maxWidth: 1200,
linkImagesToOriginal: false,
withWebp: true,
},
},
{
resolve: `gatsby-remark-embed-video`,
options: {
urlOverrides: [
{
id: `youtube`,
embedURL: videoId => `https://www.youtube-nocookie.com/embed/${videoId}`,
},
],
},
},
`gatsby-remark-responsive-iframe`,
`gatsby-remark-smartypants`,
`gatsby-remark-autolink-headers`,
`gatsby-remark-attr`,
`gatsby-remark-emoji`,
]
const siteMetadata = {
title: `Studenten bilden Schüler`,
description: `German student-run non-profit providing free tutoring to improve educational equity`,
author: `Janosh Riebesell`,
url: `https://studenten-bilden-schueler.de`,
}
const plugins = [
{
resolve: `gatsby-source-contentful`,
options: {
spaceId: process.env.CONTENTFUL_SPACE_ID,
accessToken: process.env.CONTENTFUL_ACCESS_TOKEN,
},
},
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: remarkPlugins,
},
},
`gatsby-plugin-catch-links`,
`gatsby-plugin-styled-components`,
`gatsby-plugin-react-helmet`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-algolia`,
options: {
appId: process.env.GATSBY_ALGOLIA_APP_ID,
apiKey: process.env.ALGOLIA_ADMIN_KEY,
queries,
chunkSize: 10000, // default: 1000
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: siteMetadata.author,
short_name: siteMetadata.title,
display: `standalone`,
icon: `src/assets/favicon.svg`,
background_color: `#150956`,
theme_color: `#150956`,
},
},
`gatsby-plugin-netlify`,
`gatsby-plugin-netlify-cache`,
]
module.exports = { siteMetadata, plugins }