-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgatsby-config.js
115 lines (113 loc) · 2.67 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
const siteMetadata = require('./content/data/siteMetadata.json')
const path = require('path')
require('dotenv').config({
path: `.env.${process.env.NODE_ENV}`,
})
module.exports = {
siteMetadata,
plugins: [
`gatsby-plugin-react-helmet`,
`gatsby-plugin-styled-components`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Frank Congson`,
short_name: `Frank`,
start_url: `/`,
background_color: `#222222`,
theme_color: `#222222`,
display: `minimal-ui`,
icon: `content/images/webclip.png`,
},
},
`gatsby-plugin-image`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
`gatsby-transformer-json`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/content/images`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `posts`,
path: `${__dirname}/content/posts`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `pages`,
path: `${__dirname}/content/pages`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `content`,
path: `${__dirname}/content`,
},
},
{
resolve: `gatsby-plugin-mdx`,
options: {
mdxOptions: {
remarkPlugins: [
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 1200,
},
},
],
rehypePlugins: [],
},
},
},
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 1200,
},
},
],
},
},
{
resolve: `gatsby-plugin-google-gtag`,
options: {
trackingIds: [`${process.env.GOOGLE_ANALYTICS_TRACKING_ID}`],
gtagConfig: {
anonymize_ip: true,
cookie_expires: 0,
},
pluginConfig: {
head: false,
respectDNT: true,
},
},
},
`gatsby-plugin-typescript`,
`gatsby-plugin-graphql-codegen`,
{
resolve: `gatsby-plugin-root-import`,
options: {
content: path.join(__dirname, `content`),
components: path.join(__dirname, `src/components`),
pages: path.join(__dirname, `src/pages`),
stylesheets: path.join(__dirname, `src/stylesheets`),
templates: path.join(__dirname, `src/templates`),
utils: path.join(__dirname, `src/utils`),
},
},
'gatsby-plugin-netlify',
],
}