From ef85ae6ea13888cdffda5cc2e1b1e6814eaedde7 Mon Sep 17 00:00:00 2001 From: gnezim Date: Sat, 18 Apr 2026 23:26:56 +0300 Subject: [PATCH] Inject MAP_TILE_URL into window.__ENV__ via html.tags + Docker build-arg MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit http://flights-ui.devwebzavod.ru/ru/flights-map was still hitting the same-origin tile path after adding the k8s env: Modern.js renders the fallback on the server (i18n isn't preloaded), so the route component that reads getEnv() never actually runs during SSR. The page hydrates client-side, where process.env is Rspack's empty stub and MAP_TILE_URL is never set — getEnv() falls back to the default. Move the value into window.__ENV__ instead: - modern.config.ts: inline a