-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
128 lines (127 loc) · 2.99 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
122
123
124
125
126
127
128
require('dotenv').config()
module.exports = {
siteMetadata: {
title: `Alexandra Vlad - Photography`,
description: `Kick off your next, great Gatsby project with this default starter. This barebones starter ships with the main Gatsby configuration files you might need.`,
author: `@av`,
siteUrl: `https://alexandra-vlad.com`
},
plugins: [
{
resolve: `gatsby-theme-material-ui`,
options: {
webFontsConfig: {
fonts: {
google: [
{
family: `Raleway`,
variants: [`300`, `400`, `500`]
},
{
family: `Shadows Into Light`,
variants: [`400`]
}
]
}
}
}
},
{
resolve: `gatsby-plugin-robots-txt`,
options: {
host: `https://alexandra-vlad.com`,
sitemap: `https://alexandra-vlad.com/sitemap.xml`,
policy: [{ userAgent: '*', allow: '/' }]
}
},
{
resolve: `gatsby-plugin-sitemap`,
options: {
output: `/sitemap.xml`
}
},
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-plugin-react-helmet-canonical-urls`,
options: {
siteUrl: `https://alexandra-vlad.com`
}
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`
}
},
{
resolve: `gatsby-source-contentful`,
options: {
spaceId: process.env.CONTENTFUL_SPACE_ID,
accessToken: process.env.CONTENTFUL_ACCESS_TOKEN
}
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-i18n`,
options: {
langKeyDefault: '',
langKeyForNull: '',
prefixDefault: false,
useLangKeyLayout: false
}
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
// The property ID; the tracking code won't be generated without it
trackingId: 'UA-174590387-1',
// Defines where to place the tracking script - `true` in the head and `false` in the body
head: true,
// Setting this parameter is optional
anonymize: true,
// Setting this parameter is also optional
respectDNT: true,
// Delays sending pageview hits on route update (in milliseconds)
pageTransitionDelay: 0,
// Defers execution of google analytics script after page load
defer: true,
// Any additional optional fields
sampleRate: 5,
siteSpeedSampleRate: 10,
cookieDomain: 'https://alexandra-vlad.com'
}
},
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-images-contentful`,
options: {
maxWidth: 800,
withWebp: true,
loading: 'lazy'
}
}
]
}
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Alexandra Vlad Photography`,
short_name: `AV Photography`,
start_url: `/`,
background_color: `#c8ae5e`,
theme_color: `#c8ae5e`,
display: `minimal-ui`,
icon: `src/images/photo-camera.png`
}
},
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
`gatsby-plugin-offline`
]
}