diff --git a/backend/static/js/boot.js b/backend/static/js/boot.js index c564225..09e1624 100644 --- a/backend/static/js/boot.js +++ b/backend/static/js/boot.js @@ -34,14 +34,15 @@ // Zentrale Feature-Flag-Helper (boot.js lädt vor allen Modulen) // ---------------------------------------------------------- window.BY = window.BY || {}; -// Offline-Vektorkacheln (byt://): Staging-Default AN seit 2026-06-06, Production AUS -// bis Freigabe; localStorage by_offline_tiles '1'/'0' bzw. ?tilesoffline übersteuert. +// Offline-Vektorkacheln (byt://): Default AN auf allen deployten Hosts (Prod + Staging), +// localhost bleibt AUS; localStorage by_offline_tiles '1'/'0' bzw. ?tilesoffline übersteuert. +// Prod-Freigabe René 2026-06-07 (analog by_map_gl, Gerätetests Runde 1+2 bestanden). window.BY.offlineTiles = function () { try { var flag = localStorage.getItem('by_offline_tiles'); if (flag === '1') return true; if (flag === '0') return false; - return location.hostname === 'staging.banyaro.app'; + return /(^|\.)banyaro\.(app|de)$/.test(location.hostname); } catch (e) { return false; } }; diff --git a/docs/OFFLINE_MAPS_PLAN.md b/docs/OFFLINE_MAPS_PLAN.md index 51810a2..c440341 100644 --- a/docs/OFFLINE_MAPS_PLAN.md +++ b/docs/OFFLINE_MAPS_PLAN.md @@ -1,6 +1,7 @@ # Offline-Karten (GL/Vektor) — Feature-Plan -**Status:** Runde 2 (adaptives Modell) umgesetzt — **Staging-Default AN**; Production AUS bis Freigabe. +**Status:** LIVE auf Production + Staging (Default AN auf banyaro.app/.de, Prod-Freigabe René 2026-06-07 +nach bestandenen Gerätetests Runde 1+2). localhost = Leaflet/AUS. **Stand:** 2026-06-07. Autor: René + Claude (Design). ## Umsetzungsstand (2026-06-06, v1222 auf Staging)