Files
nodeMap/docs/config/urls.md

23 lines
602 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!-- /docs/config/urls.md -->
# 🌐 urls.js
Diese Datei berechnet dynamisch URLs basierend auf `window.location.origin`.
Alle Endpunkte (API, Tiles, Server) werden ohne Port oder Hardcoding erzeugt.
## Exportierte Konstanten
- `BASE_URL``/api`
- `SERVER_URL` → Hostname ohne Port (für Links)
- `PROXY_TARGET` → z.B. `http://hostname:4000`
- `OFFLINE_TILE_LAYER` → Offline-Kachelpfad
- `MAP_TILES_LAYER` → Alias für `OFFLINE_TILE_LAYER`
## Hinweis
Alle Berechnungen erfolgen nur **clientseitig** (`typeof window !== "undefined"`).
---
[Zurück zur Übersicht](../README.md)