forked from meltano/hub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
39 lines (33 loc) · 821 Bytes
/
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
[build]
base = "."
command = """\
sed -i "s|API_URL_PLACEHOLDER|${PROD_API}|g" netlify.toml && \
HUB_SITE_URL=$URL ./utility_scripts/build/build_with_metrics.sh
"""
publish = "dist"
[context.deploy-preview]
command = """\
sed -i "s|API_URL_PLACEHOLDER|${STAGING_API}|g" netlify.toml && \
HUB_SITE_URL=$DEPLOY_PRIME_URL ./utility_scripts/build/build_with_metrics.sh
"""
[[redirects]]
from = "/taps/*"
to = "/extractors/tap-:splat"
force = true
[[redirects]]
from = "/targets/*"
to = "/loaders/target-:splat"
force = true
[[redirects]]
from = "/singer/taps"
to = "/extractors"
force = true
[[redirects]]
from = "/singer/targets"
to = "/loaders"
force = true
[[redirects]]
from = "/meltano/api/v1/*"
to = "API_URL_PLACEHOLDER/:splat"
status = 301
force = true