16a5681e8a
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.
19 lines
538 B
TOML
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
|