-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
97 lines (93 loc) · 2.32 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
const path = require(`path`);
require("dotenv").config({
path: `.env.production`,
});
const contentfulConfig = {
spaceId: process.env.CONTENTFUL_SPACE_ID,
accessToken: process.env.CONTENTFUL_ACCESS_TOKEN,
};
if (!contentfulConfig.spaceId || !contentfulConfig.accessToken) {
throw new Error("Contentful not configured correctly!");
}
module.exports = {
siteMetadata: {
name: `Judson James Personal Portfolio`,
tagline: `Full Stack Software Engineer ready to take on any projects!`,
siteUrl: `https://judsonjames.com`
},
plugins: [
`gatsby-plugin-preload-link-crossorigin`,
`gatsby-plugin-sass`,
`gatsby-plugin-typescript`,
`gatsby-plugin-tslint`,
`gatsby-plugin-react-helmet`,
`gatsby-plugin-sitemap`,
`gatsby-plugin-react-svg`,
`gatsby-plugin-smoothscroll`,
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Judson James Professional Portfolio`,
short_name: `Judson James`,
start_url: `/`,
background_color: `#4b90d2`,
theme_color: `#d18c4b`,
display: `standalone`,
icon: "static/img/profile_pic_new.png",
},
},
`gatsby-plugin-offline`,
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: process.env.GOOGLE_ANALYTICS,
}
},
{
resolve: `gatsby-plugin-robots-txt`,
options: {
host: `https://judsonjames.com`,
sitemap: `https://judsonjames.com/sitemap.xml`,
policy: [{ userAgent: '*', allow: '/'}]
},
},
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-images-contentful`,
options: {
maxWidth: 600,
}
}
]
}
},
{
resolve: `gatsby-plugin-canonical-urls`,
options: {
siteUrl: `https://www.judsonjames.com`,
},
},
{
resolve: `gatsby-source-contentful`,
options: contentfulConfig,
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: path.join(__dirname, `src`, `images`)
}
},
{
resolve: `gatsby-plugin-env-variables`,
options: {
whitelist: ["GETFORM_URL"]
},
},
],
};