-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
111 lines (109 loc) · 2.51 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
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
});
const googleAnalyticsTrackingId = "UA-179380345-1";
module.exports = {
pathPrefix: "/",
siteMetadata: {
title: `Employers Social Mobility Alliance`,
description: `Social inequality is persistent and systematic. Often where you start in life is where you’ll end up. Together we can change this.`,
author: ``,
gaTrackingId: googleAnalyticsTrackingId,
hostName: `esma.network`,
},
plugins: [
`gatsby-transformer-ffmpeg`,
`gatsby-plugin-emotion`,
`gatsby-plugin-react-helmet`,
`gatsby-plugin-mdx`,
{
resolve: `gatsby-plugin-gdpr-cookies`,
options: {
googleAnalytics: {
trackingId: googleAnalyticsTrackingId,
},
environments: ["production"],
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `content`,
path: `${__dirname}/src/content`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `video`,
path: `${__dirname}/src/video`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `svg`,
path: `${__dirname}/src/svg`,
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `gatsby-starter-default`,
short_name: `starter`,
start_url: `/`,
background_color: `#663399`,
theme_color: `#663399`,
display: `minimal-ui`,
icon: `src/svg/logo/favicon.svg`,
},
},
{
resolve: `gatsby-plugin-web-font-loader`,
options: {
google: {
families: [`Montserrat:300,400,500,600,700`],
},
},
},
{
resolve: `gatsby-plugin-react-svg`,
options: {
rule: {
include: /\.svg$/,
},
},
},
{
resolve: `gatsby-plugin-mailchimp`,
options: {
endpoint: process.env.MAILCHIMP_ENDPOINT,
},
},
{
resolve: `gatsby-plugin-breadcrumb`,
options: {
useAutoGen: true,
exclude: [`/404/`, `/404.html`],
trailingSlashes: true,
usePathPrefix: "/",
},
},
{
resolve: `gatsby-redirect-from`,
options: {
query: `allMdx`,
},
},
`gatsby-plugin-meta-redirect`,
],
};