Add redirects to cast to catch some common mistakes in custom cards (#12808)

This commit is contained in:
Paulus Schoutsen 2022-05-26 14:58:54 -07:00 committed by GitHub
parent 6797e17fc8
commit 93f4ae1bea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

9
cast/public/_redirects Normal file
View File

@ -0,0 +1,9 @@
# These redirects are handled by Netlify
#
# Some custom cards are not prefixing the instance URL when fetching data
# and can end up fetching the data from the Cast domain instead of HA.
# This will make sure that some common ones are replaced with a placeholder.
/api/camera_proxy/* /images/google-nest-hub.png
/api/camera_proxy_stream/* /images/google-nest-hub.png
/api/media_player_proxy/* /images/google-nest-hub.png