Improve operational GIS map workflow
This commit is contained in:
@@ -31,7 +31,7 @@ OSM_OVERPASS_URL=https://overpass-api.de/api/interpreter
|
||||
```env
|
||||
VITE_API_BASE_URL=
|
||||
VITE_API_PROXY_TARGET=http://localhost:8000
|
||||
VITE_MAP_STYLE_URL=https://demotiles.maplibre.org/style.json
|
||||
VITE_MAP_STYLE_URL=
|
||||
```
|
||||
|
||||
`VITE_API_BASE_URL` is intentionally empty by default so the browser calls the
|
||||
@@ -39,6 +39,12 @@ same origin as the frontend. In Docker Compose, nginx serves the built frontend
|
||||
and reverse proxies `/api` and `/health` to the backend container. For local
|
||||
Vite development, `VITE_API_PROXY_TARGET` can point to the local backend.
|
||||
|
||||
If `VITE_MAP_STYLE_URL` is empty, the frontend uses the built-in OpenStreetMap
|
||||
road raster basemap with visible attribution. This is suitable for local V1
|
||||
testing and demos. For production, commercial use or heavier traffic, set
|
||||
`VITE_MAP_STYLE_URL` to a managed MapLibre style URL from an appropriate tile
|
||||
provider instead of relying on the public OpenStreetMap tile service.
|
||||
|
||||
## Docker compose services
|
||||
|
||||
- `db`: PostGIS image.
|
||||
|
||||
Reference in New Issue
Block a user