forked from vmware-tanzu/tanzu-dev-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
80 lines (66 loc) · 1.62 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
# Default build settings
[build]
publish = "public"
command = "make netlify-deploy"
[build.environment]
HUGO_VERSION = "0.107.0"
TZ='America/Los_Angeles'
[context.production.environment]
HUGO_ENV = "production"
[dev]
command = "make netlify-dev"
publish = "public/developer"
framework = "#custom"
targetPort = 1313
autoLaunch = false
# Deploy Preview context only
[[context.deploy-preview.plugins]]
package = "@netlify/plugin-lighthouse" # ref https://github.com/netlify/netlify-plugin-lighthouse#readme
[[context.deploy-preview.plugins.inputs.audits]]
path = "developer/"
# you can specify output_path per audit, relative to the path
output_path = "lighthouse/index.html"
[[redirects]]
from = "/"
to = "/developer"
status = 302
[[redirects]]
from = "/developer/get-workshop/*"
to = "/developer/workshops/"
force = true
status = 200
[[redirects]]
from = "/developer/workshop-live"
to = "/developer/workshops/"
force = true
status = 200
[[redirects]]
from = "/developer/workshop-live/"
to = "/developer/workshops/"
force = true
status = 200
[[redirects]]
from = "/developer/workshop-live/*"
to = "/developer/workshops/"
force = true
status = 200
[[redirects]]
from = "/developer/auth-callback/*"
to = "/developer/workshops/"
force = true
status = 200
[[redirects]]
from = "/developer/workshops/*"
to = "/developer/workshops/"
force = true
status = 200
[[redirects]]
from = "/developer/workshop-status/*"
to = "/developer/workshops/"
force = true
status = 200
# Global 404 handler
[[redirects]]
from = "/*"
to = "/developer/404.html"
status = 404