This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/website/netlify.toml
Gerhard Lazu 6ea694aac0
Always deploy the docs
The default ignore gets applied and then we have a similar behaviour to
what https://github.com/dagger/dagger/pull/1591 was attempting to fix.

We hope that this will fix it for good.

Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
(cherry picked from commit 24333d1a5ae3f0366762c823f1039241b5a64106)
2022-03-01 19:22:10 +00:00

45 lines
854 B
TOML

[build]
publish = "build/"
command = "yarn build"
environment = { NODE_VERSION = "16.13.1" }
[context.production]
ignore = "false"
[context.deploy-preview]
command = "yarn build:withoutAuth"
ignore = "false"
[[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