From f266b4ed34a671f89e491d9e2a66957c357017b1 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Thu, 7 May 2026 07:32:14 -0500 Subject: [PATCH] fix(coverage): serve generated coverage PNGs via Plug.Static MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `coverage` was missing from static_paths/0, so /coverage///rssi*.png fell through to the router (or downstream CDN) instead of being served as a static asset. In prod that meant the ingress's hotlink-protection page was rendered as the Leaflet image overlay — the "Access blocked / Referer is required by..." graphic the user saw on the map. --- lib/towerops_web.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/towerops_web.ex b/lib/towerops_web.ex index a28ed306..a101e180 100644 --- a/lib/towerops_web.ex +++ b/lib/towerops_web.ex @@ -17,7 +17,7 @@ defmodule ToweropsWeb do those modules here. """ - def static_paths, do: ~w(assets fonts images vendor favicon.ico robots.txt changelog.txt) + def static_paths, do: ~w(assets fonts images vendor coverage favicon.ico robots.txt changelog.txt) def router do quote do