-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
117 lines (116 loc) · 2.7 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
const emoji = require('remark-emoji');
require('dotenv').config({ path: '.env' });
module.exports = {
siteMetadata: {
title: 'Vynohradov Blog',
description: 'Blog, portfolio, resume',
author: '@MaxVynohradov',
siteUrl: 'https://maxvynohradov.github.io/',
keywords: [
'blog',
'development',
'nodejs',
'typescript',
'javascript',
'oop',
'design patterns',
'aws',
'serverless',
],
social: {
twitterHandle: '@max_vynohradov',
twitter: 'https://twitter.com/max_vynohradov',
linkedin: 'https://www.linkedin.com/in/max-vynohradov/',
instagram: 'https://www.instagram.com/vynohradov.max/',
},
},
plugins: [
'gatsby-plugin-react-helmet',
'gatsby-plugin-sitemap',
'gatsby-plugin-robots-txt',
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'blog',
path: `${__dirname}/content/blog`,
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'pages',
path: `${__dirname}/src/pages`,
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
path: `${__dirname}/src/images`,
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'fonts',
path: `${__dirname}/src/fonts`,
},
},
'gatsby-transformer-sharp',
'gatsby-plugin-sharp',
{
resolve: 'gatsby-plugin-mdx',
options: {
extensions: ['.md', '.mdx'],
remarkPlugins: [emoji],
gatsbyRemarkPlugins: [
{
resolve: 'gatsby-remark-images',
options: {
maxWidth: 1200,
},
},
{
resolve: 'gatsby-remark-highlight-code',
options: {
theme: 'one-light',
},
},
],
},
},
{
resolve: 'gatsby-plugin-manifest',
options: {
name: 'gatsby-starter-default',
short_name: 'starter',
start_url: '/blog',
background_color: '#632f83',
theme_color: '#632f83',
display: 'standalone',
icon: 'src/images/logo-icon-new.png',
},
},
'gatsby-plugin-remove-serviceworker',
// {
// resolve: 'gatsby-plugin-offline',
// precachePages: ['/blog/*'],
// },
{
resolve: 'gatsby-plugin-styled-components',
},
{
resolve: 'gatsby-plugin-google-analytics',
options: {
trackingId: process.env.GA_TRACKING_ID,
},
},
{
resolve: 'gatsby-plugin-sentry',
options: {
dsn: process.env.SENTRY_DSN_URL,
environment: process.env.NODE_ENV,
},
},
],
};