fix(geoportal): use relative /tiles URL for Martin (avoids mixed content + build-time env)

This commit is contained in:
AI Assistant
2026-03-23 15:49:37 +02:00
parent 4a144fc397
commit 4ea7c6dbd6
@@ -11,12 +11,10 @@ import type { ClickedFeature, LayerVisibility } from "../types";
/* ------------------------------------------------------------------ */
/**
* Martin tile URL.
* Env var NEXT_PUBLIC_MARTIN_URL should be set in docker-compose.yml:
* - NEXT_PUBLIC_MARTIN_URL=http://10.10.10.166:3010
* For production via Traefik, use https://tools.beletage.ro/tiles
* Martin tile URL — use relative /tiles path (proxied by Traefik).
* This works both in production (HTTPS) and avoids mixed-content issues.
*/
const DEFAULT_MARTIN_URL = process.env.NEXT_PUBLIC_MARTIN_URL ?? "http://10.10.10.166:3010";
const DEFAULT_MARTIN_URL = "/tiles";
/** Default center: Romania roughly centered */
const DEFAULT_CENTER: [number, number] = [23.8, 46.1];