1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-26 21:56:37 +00:00

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

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