forked from vmware-tanzu/tanzu-dev-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
132 lines (109 loc) · 3.4 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# 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
# File-based installation of plugins # ref https://docs.netlify.com/configure-builds/file-based-configuration/
[[plugins]]
package = "@sentry/netlify-build-plugin" # ref https://github.com/getsentry/sentry-netlify-build-plugin#readme
[plugins.inputs]
deployPreviews = 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 = "/.netlify/functions/get-workshop/:splat"
force = true
status = 200
conditions = {Role = ["user"]}
[[redirects]]
from = "/developer/workshop-live"
to = "/developer/workshop-live/"
force = true
status = 200
conditions = {Role = ["user"]}
[[redirects]]
from = "/developer/workshop-live/"
to = "/developer/workshop-live/"
force = true
status = 200
conditions = {Role = ["user"]}
[[redirects]]
from = "/developer/get-workshop/*"
to = "/.netlify/functions/auth-start/:splat"
force = true
status = 200
[[redirects]]
from = "/developer/auth-callback/*"
to = "/.netlify/functions/auth-callback/:splat"
force = true
status = 200
[[redirects]]
from = "/developer/workshop-live/*"
to = "/developer/404.html"
force = true
status = 404
[[redirects]]
from = "/developer/workshop-status/*"
to = "/.netlify/functions/workshop-status/:splat"
force = true
status = 200
[[redirects]]
from = "/developer/data/tanzu-gemfire/*"
to = "/developer/data/gemfire/:splat"
force = true
status = 301
[[redirects]]
from = "/developer/data/tanzu-rabbitmq/*"
to = "/developer/data/rabbitmq/:splat"
force = true
status = 301
[[redirects]]
from = "/developer/data/tanzu-sql/*"
to = "/developer/data/sql/:splat"
force = true
status = 301
[[redirects]]
from = "/developer/data/tanzu-greenplum/*"
to = "https://tanzu.vmware.com/greenplum"
force = true
status = 301
[[redirects]]
from = "/developer/blog/key-requirements-of-modern-apis-for-an-end-to-end-api-lifecycle-implementation/"
to = "https://blogs.vmware.com/security/2022/10/key-requirements-of-modern-apis-for-an-end-to-end-api-lifecycle-implementation.html"
force = true
status = 301
[[redirects]]
from = "/developer/guides/tanzu-application-platform-deploying-a-workload/"
to = "https://docs.vmware.com/en/VMware-Tanzu-Application-Platform/1.3/tap/GUID-getting-started-deploy-first-app.html"
force = true
status = 301
[[redirects]]
from = "/developer/learningpaths/inner-loop-dev-with-vmware-tanzu-application-platform/tanzu-application-platform-deploying-a-workload/"
to = "https://docs.vmware.com/en/VMware-Tanzu-Application-Platform/1.3/tap/GUID-getting-started-deploy-first-app.html"
force = true
status = 301
# Global 404 handler
[[redirects]]
from = "/*"
to = "/developer/404.html"
status = 404