Skip to content

[medium] adsb.lol military feed depends on the Vite dev proxy #2

@MeyerThorsten

Description

@MeyerThorsten

Severity: medium
Category: bug

The default adsblol military source is wired to a dev-only Vite proxy path, so it works under vite dev but not under preview or static production hosting.

Evidence:

  • src/layers/military-layer.ts:22 sets the source URL to /proxy/adsb-mil.
  • src/layers/military-layer.ts:406-412 fetches that path directly for the default adsblol source.
  • vite.config.ts:24-33 defines /proxy/adsb-mil only inside the Vite dev server proxy.

Impact:

  • the default military feed fails outside the dev server
  • users see avoidable fetch errors and reduced military coverage in preview and production
  • the app behavior differs materially between development and deployment

Recommended fix:

  • move the proxy to the Express backend, or
  • replace the dev-only path with a production-backed endpoint that exists in every environment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions