7c7cce38c9
Signed-off-by: Sam Alba <samalba@users.noreply.github.com>
53 lines
1.3 KiB
TOML
53 lines
1.3 KiB
TOML
[build]
|
|
publish = "build/"
|
|
command = "yarn build"
|
|
environment = { NODE_VERSION = "16.13.1" }
|
|
|
|
[context.production]
|
|
# Do not build the site if there's no site-related changes since the last
|
|
# commit.
|
|
# This assumes PRs to `main` only contain merge commits, so it's safe to
|
|
# compare the current commit to the previous.
|
|
# We can't use `$CACHED_COMMIT_REF` because that points to the PR preview
|
|
# that was built before merging.
|
|
ignore = "git diff --quiet HEAD^ HEAD -- . ../docs/"
|
|
|
|
[context.deploy-preview]
|
|
# Do not build the site if there's no site-related changes since the last
|
|
# deploy.
|
|
ignore = "git diff --quiet $COMMIT_REF $CACHED_COMMIT_REF -- ./ ../docs/"
|
|
command = "yarn build:withoutAuth"
|
|
|
|
[[redirects]]
|
|
# Embargoes compliance. DO NOT REMOVE
|
|
conditions = {Country = ["CU", "IR", "KP", "SY", "UA"]}
|
|
from = "/*"
|
|
to = "/restricted"
|
|
status = 302
|
|
force = true
|
|
|
|
[[redirects]]
|
|
from = "/github-proxy/*"
|
|
to = "https://github.com/:splat"
|
|
status = 200
|
|
|
|
[[redirects]]
|
|
from = "/github-api-proxy/*"
|
|
to = "https://api.github.com/:splat"
|
|
status = 200
|
|
|
|
[[redirects]]
|
|
from = "/docs-access/*"
|
|
to = "https://j20f3pfq11.execute-api.us-east-1.amazonaws.com/Prod/u/:splat"
|
|
status = 200
|
|
|
|
[[redirects]]
|
|
from = "/t"
|
|
to = "https://api.amplitude.com"
|
|
status = 200
|
|
|
|
[[redirects]]
|
|
from = "/reference"
|
|
to = "/reference/alpine"
|
|
status = 302
|