Create domains.json (#2536)

This commit is contained in:
Joakim Sørensen 2021-05-04 11:52:59 +02:00 committed by GitHub
parent de6f767261
commit 8609fca925
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -12,6 +12,11 @@
[headers.values]
Cache-Control = "public, max-age: 900, s-maxage=604800, must-revalidate"
[[headers]]
for = "/domains.json"
[headers.values]
Cache-Control = "public, max-age: 900, s-maxage=604800, must-revalidate"
[[redirects]]
from = "/"
to = "https://github.com/home-assistant/brands"

View file

@ -37,3 +37,6 @@ find ./build -type f -name "logo.png" | while read logo; do
echo "Using ${logo} as hDPI logo"
fi
done
# Create domains.json
find ./build -maxdepth 1 -type d -exec basename {} \; | sort | jq -sR 'split("\n")[1:]' | jq 'map(select(length > 0))' > ./build/domains.json