From 93f4ae1bea4d701dae156b0a6388e158d06cceee Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Thu, 26 May 2022 14:58:54 -0700 Subject: [PATCH] Add redirects to cast to catch some common mistakes in custom cards (#12808) --- cast/public/_redirects | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 cast/public/_redirects diff --git a/cast/public/_redirects b/cast/public/_redirects new file mode 100644 index 0000000000..5849dbfce6 --- /dev/null +++ b/cast/public/_redirects @@ -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