-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
72 lines (68 loc) · 1.94 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
// eslint-disable-next-line import/no-extraneous-dependencies
const dotenv = require('dotenv');
// Load environment variables from project
dotenv.config();
const spaceId = process.env.CONTENTFUL_SPACE_ID;
const accessToken = process.env.CONTENTFUL_DELIVERY_TOKEN;
if (!spaceId || !accessToken) {
throw new Error('Contentful spaceId and the delivery token need to be provided.');
}
const siteUrl = 'https://diloreto.com';
module.exports = {
siteMetadata: {
siteUrl,
},
plugins: [
'gatsby-plugin-typescript',
'gatsby-plugin-layout',
'gatsby-plugin-remove-trailing-slashes',
'gatsby-transformer-remark',
'gatsby-transformer-sharp',
'gatsby-plugin-sharp',
'gatsby-plugin-react-helmet',
'gatsby-plugin-sitemap',
'gatsby-plugin-material-ui',
{
resolve: 'gatsby-plugin-google-analytics',
options: {
trackingId: 'UA-141361857-1',
head: true,
anonymize: true,
},
},
{
resolve: 'gatsby-plugin-robots-txt',
options: {
host: siteUrl,
sitemap: `${siteUrl}/sitemap.xml`,
policy: [{ userAgent: '*', allow: '/' }],
},
},
{
resolve: 'gatsby-plugin-web-font-loader',
options: {
google: {
families: ['Old Standard TT', 'Karla'],
},
},
},
{
resolve: 'gatsby-plugin-manifest',
options: {
name: 'DiLoreto Family Website',
short_name: 'DiLoreto Family',
start_url: '/',
background_color: '#d1d1d1',
theme_color: '#7d89c1',
// Enables "Add to Homescreen" prompt and disables browser UI (including back button)
// see https://developers.google.com/web/fundamentals/web-app-manifest/#display
display: 'standalone',
icon: 'src/images/favicon.png', // This path is relative to the root of the site.
},
},
{
resolve: 'gatsby-source-contentful',
options: { spaceId, accessToken },
},
],
};