forked from cerbos/cerbos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
99 lines (80 loc) · 2.09 KB
/
netlify.toml
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
[build]
publish = "docs/build"
# Only required until Antora LFS support lands. https://gitlab.com/antora/antora/-/issues/185
[[redirects]]
from = "/cerbos/latest/_images/*"
to = "/cerbos/prerelease/_images/:splat"
status = 302
force = true
[[redirects]]
from = "/cerbos/latest/:module/_images/*"
to = "/cerbos/prerelease/:module/_images/:splat"
status = 302
force = true
# Version-specific redirects because Netlify creates a redirect loop if we try to use a version wildcard.
[[redirects]]
from = "/cerbos/0.31.0/_images/*"
to = "/cerbos/prerelease/_images/:splat"
status = 302
force = true
[[redirects]]
from = "/cerbos/0.31.0/:module/_images/*"
to = "/cerbos/prerelease/:module/_images/:splat"
status = 302
force = true
[[redirects]]
from = "/cerbos/0.32.0/_images/*"
to = "/cerbos/prerelease/_images/:splat"
status = 302
force = true
[[redirects]]
from = "/cerbos/0.32.0/:module/_images/*"
to = "/cerbos/prerelease/:module/_images/:splat"
status = 302
force = true
[[redirects]]
from = "/cerbos/0.33.0/_images/*"
to = "/cerbos/prerelease/_images/:splat"
status = 302
force = true
[[redirects]]
from = "/cerbos/0.33.0/:module/_images/*"
to = "/cerbos/prerelease/:module/_images/:splat"
status = 302
force = true
[[redirects]]
from = "/cerbos/0.34.0/_images/*"
to = "/cerbos/prerelease/_images/:splat"
status = 302
force = true
[[redirects]]
from = "/cerbos/0.34.0/:module/_images/*"
to = "/cerbos/prerelease/:module/_images/:splat"
status = 302
force = true
[[redirects]]
from = "/cerbos/0.35.0/_images/*"
to = "/cerbos/prerelease/_images/:splat"
status = 302
force = true
[[redirects]]
from = "/cerbos/0.35.0/:module/_images/*"
to = "/cerbos/prerelease/:module/_images/:splat"
status = 302
force = true
[[redirects]]
from = "/cerbos/0.35.1/_images/*"
to = "/cerbos/prerelease/_images/:splat"
status = 302
force = true
[[redirects]]
from = "/cerbos/0.35.1/:module/_images/*"
to = "/cerbos/prerelease/:module/_images/:splat"
status = 302
force = true
# IMG_REDIRECTS_END
# This has to be at the bottom for the above redirects to work
[[redirects]]
from = "/cerbos/:version/*"
to = "/cerbos/latest/:splat"
status = 404