-
Notifications
You must be signed in to change notification settings - Fork 0
/
azion.config.cjs
46 lines (46 loc) · 920 Bytes
/
azion.config.cjs
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
module.exports = {
build: {
preset: {
name: 'angular'
}
},
origin: [
{
name: 'origin-storage-default',
type: 'object_storage'
}
],
rules: {
request: [
{
name: 'Set Storage Origin for All Requests',
match: '^\\/',
behavior: {
setOrigin: {
name: 'origin-storage-default',
type: 'object_storage'
}
}
},
{
name: 'Deliver Static Assets',
match:
'.(css|js|ttf|woff|woff2|pdf|svg|jpg|jpeg|gif|bmp|png|ico|mp4|json|xml|html)$',
behavior: {
setOrigin: {
name: 'origin-storage-default',
type: 'object_storage'
},
deliver: true
}
},
{
name: 'Redirect to index.html',
match: '^\\/',
behavior: {
rewrite: '/index.html'
}
}
]
}
}