redash/netlify.toml

45 lines
886 B
TOML
Raw Normal View History

2018-10-28 13:31:27 +00:00
[build]
base = "client"
publish = "client/dist"
command = "npm ci && npm run build"
2018-10-28 13:31:27 +00:00
[build.environment]
NODE_VERSION = "12.18.4"
CYPRESS_INSTALL_BINARY = "0"
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD = "1"
2018-10-28 13:31:27 +00:00
[[redirects]]
from = "/api/*"
to = "http://preview-backend.redashapp.com/api/:splat"
status = 200
[[redirects]]
from = "/login"
to = "http://preview-login.redashapp.com/login"
status = 200
[[redirects]]
from = "/logout"
to = "http://preview-backend.redashapp.com/logout"
status = 200
[[redirects]]
from = "/status.json"
to = "http://preview-backend.redashapp.com/status.json"
status = 200
[[redirects]]
from = "/static/server*"
to = "http://preview-backend.redashapp.com/static/server:splat"
status = 200
[[redirects]]
from = "/static/*"
to = "/:splat"
status = 200
[[redirects]]
from = "/*"
to = "/index.html"
status = 200