The esbuild bundle wraps everything in a 'use strict' IIFE, causing the
leaflet UMD module to take the CommonJS path instead of setting
window.leaflet. The entry point check window.leaflet && !window.L always
failed, so window.L was never assigned and the map never initialized.
- Add leaflet-global.js to import leaflet-minimal and set window.L before
plugins execute (ESM source-order evaluation guarantees this)
- Replace the broken window.leaflet check in map-bundle-entry.js with an
import of leaflet-global.js
- Fix race condition in map bundle loading by waiting for script to load before initializing map
- Ensure Leaflet is properly exposed as window.L in map bundle
- Add Leaflet availability check in map initialization function
- Disable Exq background jobs in development environment to remove Redis dependency
- Remove invalid TelemetryMetricsPrometheus plug from endpoint
- Application now starts successfully without Redis in development mode
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>