fix(geoportal): use relative /tiles URL for Martin (avoids mixed content + build-time env)
This commit is contained in:
@@ -11,12 +11,10 @@ import type { ClickedFeature, LayerVisibility } from "../types";
|
|||||||
/* ------------------------------------------------------------------ */
|
/* ------------------------------------------------------------------ */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Martin tile URL.
|
* Martin tile URL — use relative /tiles path (proxied by Traefik).
|
||||||
* Env var NEXT_PUBLIC_MARTIN_URL should be set in docker-compose.yml:
|
* This works both in production (HTTPS) and avoids mixed-content issues.
|
||||||
* - NEXT_PUBLIC_MARTIN_URL=http://10.10.10.166:3010
|
|
||||||
* For production via Traefik, use https://tools.beletage.ro/tiles
|
|
||||||
*/
|
*/
|
||||||
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 */
|
/** Default center: Romania roughly centered */
|
||||||
const DEFAULT_CENTER: [number, number] = [23.8, 46.1];
|
const DEFAULT_CENTER: [number, number] = [23.8, 46.1];
|
||||||
|
|||||||
Reference in New Issue
Block a user