-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathgatsby-config.js
133 lines (126 loc) · 2.98 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
/* eslint-env node */
require('dotenv').config()
const path = require('path')
require('./config/prismjs/usage')
const apiMiddleware = require('@dvcorg/websites-server/src/middleware/api')
const redirectsMiddleware = require('@dvcorg/websites-server/src/middleware/redirects')
const title = 'CML · Continuous Machine Learning'
const description =
'Bring DevOps practices to your projects for automatic, reproducible, and fast machine learning.'
const keywords = [
'continuous machine learning',
'machine learning',
'continuous integration',
'continuous delivery',
'devops',
'deployment',
'provisioning'
]
const plugins = [
{
resolve: '@dvcorg/gatsby-theme-iterative',
options: {
glossaryInstanceName: false
}
},
{
resolve: `gatsby-plugin-alias-imports`,
options: {
alias: {
'@media': 'src/media'
}
}
},
`gatsby-plugin-theme-ui`,
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
path: path.join(__dirname, 'static', 'img')
}
},
'gatsby-plugin-catch-links',
{
resolve: 'gatsby-plugin-manifest',
options: {
background_color: '#663399',
display: 'minimal-ui',
icon: 'static/favicon-512x512.png',
name: 'CML',
short_name: 'CML',
start_url: '/',
theme_color: '#663399',
icons: [
{
src: '/apple-touch-icon-48x48.png',
sizes: '48x48',
type: 'image/png'
},
{
src: '/apple-touch-icon-72x72.png',
sizes: '72x72',
type: 'image/png'
},
{
src: '/apple-touch-icon-96x96.png',
sizes: '96x96',
type: 'image/png'
},
{
src: '/apple-touch-icon-144x144.png',
sizes: '144x144',
type: 'image/png'
},
{
src: '/apple-touch-icon.png',
sizes: '180x180',
type: 'image/png'
},
{
src: '/apple-touch-icon-192x192.png',
sizes: '192x192',
type: 'image/png'
},
{
src: '/apple-touch-icon-256x256.png',
sizes: '256x256',
type: 'image/png'
},
{
src: '/apple-touch-icon-384x384.png',
sizes: '384x384',
type: 'image/png'
},
{
src: '/apple-touch-icon-512x512.png',
sizes: '512x512',
type: 'image/png'
}
]
}
}
]
module.exports = {
trailingSlash: 'never',
flags: {
DEV_SSR: ['false', 'False', false, 'FALSE'].includes(process.env.DEV_SSR)
? false
: true
},
plugins,
siteMetadata: {
description,
author: 'Iterative',
keywords,
title,
siteUrl: process.env.HEROKU_APP_NAME
? `https://${process.env.HEROKU_APP_NAME}.herokuapp.com`
: 'https://cml.dev',
twitterUsername: '@DVCorg',
titleTemplate: '%s | CML'
},
developMiddleware: app => {
app.use(redirectsMiddleware)
app.use('/api', apiMiddleware)
}
}