-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
113 lines (112 loc) · 3.15 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
const {
NODE_ENV,
URL: NETLIFY_SITE_URL = 'https://naomiperez.netlify.app/',
DEPLOY_PRIME_URL: NETLIFY_DEPLOY_URL = NETLIFY_SITE_URL,
CONTEXT: NETLIFY_ENV = NODE_ENV,
} = process.env;
const isNetlifyProduction = NETLIFY_ENV === 'production';
const siteUrl = isNetlifyProduction ? NETLIFY_SITE_URL : NETLIFY_DEPLOY_URL;
module.exports = {
siteMetadata: {
title: 'Naomi Perez',
author: {
name: 'Naomi Perez',
},
description: "Naomi Perez's Software Development Online Portfolio.",
url: 'https://naomiperez.netlify.app/',
siteUrl: 'https://naomiperez.netlify.app/',
// image: "/images/snape.jpg", // Path to your image you placed in the 'static' folder
githubUsername: 'naomiperez',
titleTemplate: '%s | Naomi Perez',
keywords: 'Naomi, Perez, Naomi Perez, Naomi Portfolio, Naomi Perez Portfolio, Naomi Perez website'
},
plugins: [
'gatsby-plugin-robots-txt',
`gatsby-plugin-netlify`,
`gatsby-plugin-sass`,
`gatsby-plugin-react-helmet`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
`gatsby-plugin-image`,
`gatsby-plugin-sitemap`,
`gatsby-plugin-offline`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images/`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `pages`,
path: `${__dirname}/src/pages/`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `blog`,
path: `${__dirname}/src/blog/`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `blog-images`,
path: `${__dirname}/src/blog/images`,
},
},
`gatsby-transformer-remark`,
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 800,
},
},
],
},
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
// The property ID; the tracking code won't be generated without it
trackingId: 'UA-203105528-1',
// Defines where to place the tracking script - `true` in the head and `false` in the body
head: false,
// 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: false,
},
resolve: 'gatsby-plugin-robots-txt',
options: {
resolveEnv: () => NETLIFY_ENV,
env: {
production: {
policy: [{ userAgent: '*' }],
},
'branch-deploy': {
policy: [{ userAgent: '*', disallow: ['/'] }],
sitemap: null,
host: null,
},
'deploy-preview': {
policy: [{ userAgent: '*', disallow: ['/'] }],
sitemap: null,
host: null,
},
},
},
},
],
};