forked from aptible/www
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
102 lines (98 loc) · 2.29 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
console.log(`.env.${process.env.NODE_ENV}`);
require('dotenv').config({
path: `.env.${process.env.NODE_ENV}`,
});
module.exports = {
siteMetadata: {
siteUrl: `https://www.aptible.com`,
},
plugins: [
`gatsby-plugin-postcss`,
{
resolve: `gatsby-source-contentful`,
options: {
spaceId: process.env.CONTENTFUL_SPACE_ID,
accessToken: process.env.CONTENTFUL_ACCESS_TOKEN,
host: process.env.CONTENTFUL_HOST,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `yml`,
path: `${__dirname}/src/data/`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `markdown`,
path: `${__dirname}/src/markdown/`,
},
},
`gatsby-transformer-remark`,
`gatsby-transformer-yaml`,
{
resolve: `gatsby-plugin-portal`,
options: {
key: 'modal',
id: 'modal-portal',
},
},
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-plugin-favicon`,
options: {
logo: './src/images/favicon.png',
appName: 'aptible.com',
appDescription: null,
developerName: null,
developerURL: null,
dir: 'auto',
lang: 'en-US',
background: '#fff',
theme_color: '#fff',
display: 'standalone',
orientation: 'any',
start_url: '/?homescreen=1',
version: '1.0',
icons: {
android: true,
appleIcon: true,
appleStartup: true,
coast: false,
favicons: true,
firefox: true,
yandex: false,
windows: false,
},
},
},
`gatsby-plugin-sitemap`,
{
resolve: `gatsby-source-git`,
options: {
name: 'handbook',
remote: 'https://github.com/aptible/handbook.git',
}
},
{
resolve: `gatsby-source-git`,
options: {
name: 'training',
remote: 'https://github.com/aptible/training.git'
},
},
{
resolve: 'gatsby-plugin-matomo',
options: {
siteId: '1',
matomoUrl: '//m.aptiblehq.com',
matomoPhpScript: 'matomo.php',
matomoJsScript: 'matomo.js',
siteUrl: 'https://www.aptible.com',
cookieDomain: '*.aptible.com',
}
},
],
};