open-nomad/netlify.toml
Buck Doyle 16a5681e8a
Add PR previews with Netlify (#5787)
It would be preferable to only generate these for UI PRs but Netlify appears to
not have that flexibility. I tried setting up manual deployments in a Travis
environment but gave up the experiment; it could probably eventually work if
deployment failures become a nuisance.
2019-06-10 08:51:58 -05:00

19 lines
538 B
TOML

# Netlify is installed under the hc-nomad bot account on GitHub.
[build]
# The generated site needs to live at /ui/, so this moves it there after building.
command = "ember build && mkdir -p ui-dist/ui && mv dist/* ui-dist/ui/"
base = "ui"
publish = "ui/ui-dist"
# This ensures that following the link from the PR checks list redirects to the subdirectory.
[[redirects]]
from = "/"
to = "/ui/"
# This catches other unknown URLs and lets Ember handle them.
[[redirects]]
from = "/*"
to = "/ui/index.html"
status = 200