This repository has been archived by the owner on Oct 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathgatsby-config.js
125 lines (121 loc) · 2.87 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
require('dotenv').config()
const path = require('path')
const apiMiddleware = require('@dvcorg/websites-server/src/middleware/api')
const redirectsMiddleware = require('@dvcorg/websites-server/src/middleware/redirects')
const siteMetadata = {
title: 'Simplifying Machine Learning Model Deployment',
description: 'Ship, deploy and serve ML models faster',
siteUrl: process.env.HEROKU_APP_NAME
? `https://${process.env.HEROKU_APP_NAME}.herokuapp.com`
: 'https://mlem.ai',
twitterUsername: '@Iterativeai',
titleTemplate: '%s | MLEM',
keywords: [
'machine learning',
'models',
'model deployment',
'model serving',
'devops',
'mlops',
'operations',
'cloud serving'
]
}
const plugins = [
'gatsby-plugin-eslint',
'gatsby-plugin-sharp',
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
path: `${__dirname}/src/images`
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
path: path.join(__dirname, 'static', 'img')
}
},
{
resolve: '@dvcorg/gatsby-theme-iterative',
options: {
simpleLinkerTerms: require('./content/linked-terms'),
glossaryInstanceName: false
}
},
{
resolve: 'gatsby-plugin-manifest',
options: {
name: 'MLEM',
short_name: 'MLEM',
icon: 'src/images/icon-512x512.png',
start_url: '/',
background_color: '#F5F7F8',
theme_color: '#F5F7F8',
display: 'standalone',
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'
}
]
}
},
'gatsby-plugin-meta-redirect'
]
module.exports = {
flags: {
DEV_SSR: ['false', 'False', false, 'FALSE'].includes(process.env.DEV_SSR)
? false
: true
},
plugins,
siteMetadata,
developMiddleware: app => {
app.use(redirectsMiddleware)
app.use('/api', apiMiddleware)
}
}