-
Notifications
You must be signed in to change notification settings - Fork 2
/
gatsby-config.ts
102 lines (100 loc) · 2.45 KB
/
gatsby-config.ts
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
import type { GatsbyConfig } from "gatsby"
import { round } from "lodash"
/**
* Gatsby site configuration options and plugins
* Read more at https://www.gatsbyjs.com/docs/reference/config-files/gatsby-config/
*/
const config: GatsbyConfig = {
pathPrefix: '/strudel-web',
siteMetadata: {
title: `STRUDEL`,
siteUrl: `https://strudel.science`,
},
graphqlTypegen: true,
plugins: [
'gatsby-theme-material-ui',
'gatsby-plugin-image',
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
'gatsby-transformer-json',
'gatsby-plugin-mdx-source-name',
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'content',
path: `${__dirname}/content`,
ignore: [`**/engage/events/*`, `**/engage/news/*`],
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'events',
path: `${__dirname}/content/engage/events`,
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'news',
path: `${__dirname}/content/engage/news`,
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'strudel-config',
path: `${__dirname}/config`,
}
},
{
resolve: 'gatsby-plugin-mdx',
options: {
gatsbyRemarkPlugins: [
{
resolve: 'gatsby-remark-images',
options: {
maxWidth: 1200,
wrapperStyle: (fluidResult: any) => `flex:${round(fluidResult.aspectRatio, 2)};`,
},
},
],
},
},
{
resolve: `gatsby-plugin-google-gtag`,
options: {
trackingIds: [
/** Google Analytics Measurement ID */
'G-LS4NMH3JY3',
],
/**
* This object gets passed directly to the gtag config command
* This config will be shared across all trackingIds
*/
gtagConfig: {
anonymize_ip: true,
cookie_expires: 0,
},
pluginConfig: {
head: false,
respectDNT: true,
exclude: [],
origin: 'https://www.googletagmanager.com',
delayOnRouteUpdate: 0,
},
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: 'STRUDEL',
short_name: 'STRUDEL',
start_url: '/',
display: 'browser',
icon: 'content/images/strudel-logo-icon.png'
},
},
],
}
export default config