-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathboostr.config.mjs
More file actions
78 lines (73 loc) · 1.89 KB
/
boostr.config.mjs
File metadata and controls
78 lines (73 loc) · 1.89 KB
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
export default ({services}) => ({
type: 'web-frontend',
dependsOn: 'backend',
environment: {
BACKEND_URL: services.backend.url
},
rootComponent: './src/index.ts',
html: {
language: 'en',
head: {
title: services.frontend.environment.APPLICATION_NAME,
metas: [
{name: 'description', content: services.frontend.environment.APPLICATION_DESCRIPTION},
{charset: 'utf-8'},
{name: 'viewport', content: 'width=device-width, initial-scale=1'},
{'http-equiv': 'x-ua-compatible', 'content': 'ie=edge'}
],
links: [
{rel: 'icon', href: '/layr-favicon-3vtu1VGUfUfDawVC0zL4Oz.immutable.png'},
{
rel: 'alternate',
type: 'application/rss+xml',
title: 'Layr Blog Feed',
href: `${services.backend.url}blog/feed`
},
{
rel: 'stylesheet',
href: 'https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap'
}
],
style: `
/* Set body colors ASAP to avoid a white page */
body {
color: #eceff1;
background-color: #263238;
}
/* Avoid an Emotion warning */
h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
margin-top: 0 !important;
}
`,
scripts: [
{
'async': true,
'defer': true,
'data-domain': 'layrjs.com',
'src': 'https://plausible.io/js/plausible.js'
}
]
}
},
stages: {
development: {
url: 'http://localhost:18887/',
platform: 'local'
},
production: {
url: 'https://layrjs.com/',
platform: 'aws',
aws: {
region: 'us-west-2',
cloudFront: {
priceClass: 'PriceClass_100'
}
}
}
}
});