This commit is contained in:
Graham McIntire 2025-06-21 09:39:52 -05:00
parent 12e60268a1
commit 388783233f
No known key found for this signature in database

View file

@ -69,7 +69,7 @@ defmodule AprsWeb.MapLive.Index do
defp maybe_start_geolocation(socket) do
if geolocation_enabled?() do
ip_for_geolocation =
if Mix.env() == :dev do
if Application.get_env(:aprs, AprsWeb.Endpoint)[:code_reloader] do
# For testing geolocation in dev environment, use a public IP address.
# This will be geolocated to Mountain View, CA.
"8.8.8.8"