-
Notifications
You must be signed in to change notification settings - Fork 1
/
gatsby-config.js
93 lines (91 loc) · 2.31 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
/* eslint-disable @typescript-eslint/no-var-requires */
const path = require('path')
if (process.env.NODE_ENV !== 'production') {
require('dotenv').config()
}
module.exports = {
siteMetadata: {
description: 'A portfolio',
image: '/icons/icon-512x512.png',
lang: 'en',
title: 'bertie blackman',
titleTemplate: '%s · bertie blackman',
url: 'https://bertie.dev',
},
plugins: [
'gatsby-plugin-typescript',
'gatsby-plugin-react-helmet',
'gatsby-plugin-postcss',
{
options: {
alias: {
'@components': path.resolve(__dirname, 'src/components'),
'@layouts': path.resolve(__dirname, 'src/layouts'),
'@typings': path.resolve(__dirname, 'src/types'),
'@utils': path.resolve(__dirname, 'src/utils'),
},
},
resolve: 'gatsby-plugin-alias-imports',
},
{
options: {
background_color: '#6b37bf',
display: 'standalone',
icon: 'src/assets/app-icon.png', // This path is relative to the root of the site.
name: 'bertie.dev',
short_name: 'bertie.dev',
start_url: '/',
theme_color: '#4BC0D9',
},
resolve: 'gatsby-plugin-manifest',
},
'gatsby-plugin-offline',
{
options: {
accessToken: `${process.env.CONTENTFUL_ACCESS_TOKEN}`,
spaceId: `${process.env.CONTENTFUL_SPACE_ID}`,
},
resolve: 'gatsby-source-contentful',
},
{
options: {
develop: false,
printRejected: false,
tailwind: true,
},
resolve: 'gatsby-plugin-purgecss',
},
{
options: {
rule: {
include: [/icons/, /logos/],
},
},
resolve: 'gatsby-plugin-react-svg',
},
{
resolve: 'gatsby-plugin-google-fonts',
options: {
fonts: ['Roboto', 'Bebas Neue'],
display: 'swap',
},
},
{
options: {
head: false,
trackingId: `${process.env.ANALYTICS_TRACKING_ID}`,
},
resolve: `gatsby-plugin-google-analytics`,
},
{
resolve: 'gatsby-plugin-netlify',
options: {
headers: {
'/*': [
`Feature-Policy: layout-animations 'none'; oversized-images 'none'; sync-script 'none'; sync-xhr 'none'; unsized-media 'none';`,
],
},
},
},
],
}