-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathgatsby-config.js
121 lines (119 loc) · 3.02 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
require('dotenv').config({
path: '.env',
});
const SITE_URL = 'https://www.janczizikow.com';
module.exports = {
siteMetadata: {
title: 'Jan Czizikow',
siteUrl: SITE_URL,
description: `This is the site of Jan Czizikow, a Software Developer. The site is just a list of things he's been up to including blog and projects.`,
author: `@jan_czizikow`,
},
plugins: [
'gatsby-plugin-react-helmet',
'gatsby-plugin-emotion',
'gatsby-plugin-preact',
{
resolve: 'gatsby-plugin-typography',
options: {
pathToConfigModule: 'src/utils/typography.js',
},
},
{
resolve: 'gatsby-plugin-nprogress',
options: {
// Setting a color is optional.
color: '#277cea',
// Disable the loading spinner.
showSpinner: false,
},
},
{
resolve: 'gatsby-plugin-manifest',
options: {
name: 'Jan Czizikow // Software Developer',
short_name: 'Jan Czizikow',
start_url: '/',
background_color: '#313237',
// theme_color: '#277cea',
display: 'minimal-ui',
icon: 'src/assets/images/favicon.png',
},
},
{
resolve: 'gatsby-plugin-favicon',
options: {
logo: './src/assets/images/favicon.png',
injectHTML: true,
icons: {
android: true,
appleIcon: true,
appleStartup: true,
coast: false,
favicons: true,
firefox: true,
twitter: false,
yandex: false,
windows: false,
},
},
},
{
resolve: `gatsby-plugin-layout`,
options: {
component: require.resolve(`${__dirname}/src/layouts/index.js`),
},
},
{
resolve: 'gatsby-plugin-react-svg',
options: {
rule: {
include: /(assets\/images\/.*\.svg)/,
},
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
path: `${__dirname}/src/assets/images`,
},
},
'gatsby-transformer-sharp',
'gatsby-plugin-sharp',
// https://github.com/gatsbyjs/gatsby/issues/11006
// I give up -_-
// 'gatsby-plugin-offline',
'gatsby-plugin-remove-serviceworker',
'gatsby-plugin-sitemap',
{
resolve: 'gatsby-plugin-canonical-urls',
options: {
siteUrl: SITE_URL,
stripQueryString: true,
},
},
{
resolve: 'gatsby-source-strapi',
options: {
apiURL:
process.env.NODE_ENV === 'production'
? process.env.API_URL
: 'http://localhost:1337',
queryLimit: 1000, // Default to 100
contentTypes: ['project'],
// If using single types place them in this array.
// singleTypes: [`home-page`, `contact`],
},
},
{
resolve: 'gatsby-plugin-webpack-bundle-analyzer',
options: {
analyzerPort: 5050,
production: false,
},
},
'gatsby-plugin-netlify-cache',
'gatsby-plugin-netlify', // make sure to put last in the array
],
};