-
-
Notifications
You must be signed in to change notification settings - Fork 161
/
gatsby-config.ts
59 lines (55 loc) · 1.34 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
import type { GatsbyConfig } from 'gatsby';
import colors from './src/colors.json';
const plugins: GatsbyConfig['plugins'] = [
'gatsby-plugin-fontawesome-css',
'gatsby-plugin-react-helmet',
'gatsby-plugin-typescript',
'gatsby-plugin-styled-components',
'gatsby-transformer-remark',
'gatsby-plugin-image',
{
resolve: 'gatsby-plugin-manifest',
options: {
name: 'Mate Portfolio',
short_name: 'Mate',
start_url: '/',
background_color: colors.background,
theme_color_in_head: false,
display: 'minimal-ui',
icon: 'icon.png',
},
},
{
resolve: 'gatsby-source-contentful',
options: {
accessToken: process.env.ACCESS_TOKEN,
spaceId: process.env.SPACE_ID,
},
},
{
resolve: `gatsby-omni-font-loader`,
options: {
enableListener: true,
preconnect: [`https://fonts.googleapis.com`, `https://fonts.gstatic.com`],
web: [
{
name: `Cabin`,
file: `https://fonts.googleapis.com/css2?family=Cabin:wght@400;600&display=swap`,
},
],
},
},
];
if (process.env.ANALYTICS_ID) {
plugins.push({
resolve: 'gatsby-plugin-google-analytics',
options: { trackingId: process.env.ANALYTICS_ID },
});
}
const config: GatsbyConfig = {
siteMetadata: {
deterministic: false,
},
plugins,
};
export default config;