-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathnetlify.toml
28 lines (25 loc) · 1.06 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
[build]
command = "./build.sh https://archive.tetratelabs.io/envoy/download"
publish = "public"
[context]
[context.branch-deploy]
command = "./build.sh https://archive.tetratelabs.io/envoy/download"
[context.deploy-preview]
command = "./build.sh ${DEPLOY_PRIME_URL}/download"
# ex https://archive.tetratelabs.io/envoy/download/v1.12.2/envoy-v1.12.2-linux-amd64.tar.xz
# -> https://archive-envoy.netlify.app/download/v1.12.2/envoy-v1.12.2-linux-amd64.tar.xz
# -> https://github.com/tetratelabs/archive-envoy/releases/download/v1.12.2/envoy-v1.12.2-linux-amd64.tar.xz
#
# Note: this currently doesn't work in dev https://github.com/netlify/cli/issues/2708
[[redirects]]
# Note: We need a full path match here because Netlify doesn't support more complex expressions.
# See https://stackoverflow.com/questions/50036242/rewrite-html-files-in-netlify
from = "/download/*"
to = "https://github.com/tetratelabs/archive-envoy/releases/download/:splat"
force = true
status = 302
# Redirect anyone browsing to a basic HTML summary
[[redirects]]
from = "/*"
to = "/index.html"
status = 302