-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.ts
78 lines (77 loc) · 2.55 KB
/
app.ts
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
import { app } from 'broilerkit';
/**
* Configuration for the web app.
*/
export default app({
/**
* The name of the web app. Should include only
* letters, number, and dashes.
*/
name: 'broilerplate',
/**
* The AWS region to which the web app will be deployed.
*/
region: 'us-east-1',
/**
* The folder containing all the source files for your app.
* Other paths in this configuration are relative to this.
*/
sourceDir: 'src',
/**
* Icon file for your app that is used to generate favicons and mobile-compatible
* icons. The path is relative to the source directory.
*/
iconFile: 'images/broilerplate.png',
// Available stages and their configuration
stages: {
/**
* The primary public production version of the app.
*/
prod: {
// Root URL where the HTML pages are hosted
siteRoot: 'https://broilerplate.kii.ski',
// Root URL where all the indefinitely-cached static assets are hosted
assetsRoot: 'https://broilerplate.static.kii.ski',
// Root URL where the API is served
apiRoot: 'https://api.broilerplate.kii.ski',
},
/**
* The development version of the app.
*/
dev: {
// Root URL where the HTML pages are hosted
siteRoot: 'https://broilerplate-dev.kii.ski',
// Root URL where all the indefinitely-cached static assets are hosted
assetsRoot: 'https://broilerplate-dev.static.kii.ski',
// Root URL where the API is served
apiRoot: 'https://api.broilerplate-dev.kii.ski',
},
/**
* The locally run development server.
* NOTE: If you change them, you also must ensure, that your /etc/hosts
* file defines the corresponding aliases for 127.0.0.1
*/
local: {
// Root URL where the HTML pages are hosted
siteRoot: 'http://localhost:1111',
// Root URL where all the indefinitely-cached static assets are hosted
assetsRoot: 'http://localhost:1111',
// Root URL where the API is served
apiRoot: 'http://localhost:1112',
},
},
/**
* The API endpoints for this app.
*/
serverFile: 'server.ts',
// Web page configuration
pages: [{
title: 'Broilerplate',
file: 'index.pug',
scripts: ['index.ts'],
}, {
title: 'Page not found!',
file: 'error.pug',
scripts: ['index.ts'],
}],
});