-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
153 lines (149 loc) · 4.96 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
require('dotenv').config({
path: `.env`,
});
module.exports = {
// Allows the use of JSX without having to import React
// Docs https://www.gatsbyjs.com/docs/reference/config-files/gatsby-config/#jsxruntime
jsxRuntime: 'automatic',
graphqlTypegen: true,
// Required by 'gatsby-plugin-sitemap' Plugin
siteMetadata: {
title: 'Plan F',
siteUrl: 'https://plan-f.info',
description:
'Einen Plan zu haben, ist gut. Plan F zu haben, ist sehr gut. F wie Fahrrad, Fortschritt und Fachthemen. Plan F unterstützt Kommunen bei der Förderung des Radverkehrs. Dafür strukturieren wir bestehendes Wissen, Praxisbeispiele, Maßnahmen und Leitfäden zur Fahrradmobilität und zeigen notwendige Handlungsfelder auf.',
},
// Since `gatsby-plugin-typescript` is automatically included in Gatsby you
// don't need to define it here (just if you need to change the options)
plugins: [
// Docs https://www.gatsbyjs.com/plugins/gatsby-plugin-image/
// TailwindCSS needs PostCSS, https://tailwindcss.com/docs/guides/gatsby
'gatsby-plugin-postcss',
{
// Docs https://www.gatsbyjs.com/plugins/gatsby-plugin-sitemap/
// https://plan-f.info/sitemap-index.xml
// https://plan-f.info/sitemap-0.xml
resolve: 'gatsby-plugin-sitemap',
options: {
excludes: ['/impressum/', '/datenschutz/'],
},
},
{
// Docs https://www.gatsbyjs.com/plugins/gatsby-plugin-react-svg/
resolve: 'gatsby-plugin-react-svg',
options: {
rule: {
// include: /\.inline\.svg$/,
// Remove SVG props that fail conversion to dom
omitKeys: ['xmlnsSerif', 'serifId'],
},
},
},
{
// Docs https://www.gatsbyjs.com/plugins/gatsby-plugin-matomo/
resolve: 'gatsby-plugin-matomo',
options: {
siteId: '10',
matomoUrl: 'https://s.fixmycity.de',
siteUrl: 'https://plan-f.info',
disableCookies: true,
respectDnt: false, // We track very privacy friendly, so the tiny bits we are tracking, we actually want to track
// dev: true,
},
},
{
// Docs https://www.gatsbyjs.com/plugins/gatsby-plugin-manifest/
resolve: 'gatsby-plugin-manifest',
options: {
name: 'Plan F – Impulse für die kommunale Fahrradmobilität',
short_name: 'Plan F',
start_url: '/',
background_color: 'white',
theme_color: '#fff8e8',
display: 'minimal-ui', // https://developer.mozilla.org/en-US/docs/Web/Manifest/display#values
icon: 'src/assets/planf_icon.png',
legacy: false,
lang: 'de-DE', // https://developer.mozilla.org/en-US/docs/Web/Manifest/lang
},
},
{
resolve: `gatsby-source-strapi`,
options: {
apiURL: process.env.GATSBY_BACKEND_URL,
accessToken: process.env.STRAPI_TOKEN,
// Hier die Content types angeben, die wir in Gatsby verfügbar haben wollen.
// collection = array, single = ein object
collectionTypes: [
{
singularName: 'award',
queryParams: {
populate: {
logo: { populate: '*' },
},
},
},
{
singularName: 'topic',
queryParams: {
populate: {
measures: { populate: '*' },
additionalResources: { populate: '*' },
guidelines: { populate: '*' },
fundings: { populate: '*' },
image: { populate: '*' },
},
},
},
{
singularName: 'measure',
queryParams: {
populate: {
topic: { populate: '*' },
image: { populate: '*' },
additionalResources: { populate: '*' },
guidelines: { populate: '*' },
fundings: { populate: '*' },
examples: { populate: '*' },
communityEntries: { populate: '*' },
},
},
},
{
singularName: 'example',
queryParams: {
populate: {
links: { populate: '*' },
measure: { populate: '*' },
image: { populate: '*' },
awards: { populate: '*' },
relatedTopic: { populate: '*' },
},
},
},
{
singularName: 'community-entry',
queryParams: {
populate: {
image: { populate: '*' },
description: { populate: '*' },
website: { populate: '*' },
},
},
},
],
singleTypes: [],
},
},
{
resolve: `gatsby-plugin-canonical-urls`,
options: {
siteUrl: `https://plan-f.info`,
stripQueryString: true,
},
},
`gatsby-plugin-image`,
`gatsby-plugin-sharp`,
'gatsby-transformer-sharp',
'gatsby-transformer-remark',
],
};