forked from vmware-tanzu/tanzu-dev-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
66 lines (53 loc) · 1.5 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
# Default build settings
[context.production]
publish = "public"
command = "git submodule update -f --init --recursive && npm install && make function-config && hugo -b https://tanzu.vmware.com/developer --minify"
[context.production.environment]
HUGO_VERSION = "0.82.0"
HUGO_ENV = "production"
TZ='America/Los_Angeles'
[context.deploy-preview]
command = "git submodule update -f --init --recursive && npm install && make function-config && hugo -F -b $DEPLOY_PRIME_URL/developer"
[context.deploy-preview.environment]
HUGO_VERSION = "0.82.0"
TZ='America/Los_Angeles'
[[plugins]]
package = "@sentry/netlify-build-plugin"
[plugins.inputs]
deployPreviews = false
[[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/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
# Global 404 handler
[[redirects]]
from = "/*"
to = "/developer/404.html"
status = 404