LM map missing map api fall back fix

This commit is contained in:
Hagernesh
2026-08-08 07:48:39 +00:00
parent 8d3dfa4113
commit 375cf55e5f
3 changed files with 14 additions and 0 deletions

View File

@@ -47,6 +47,12 @@ interface PlacePrediction {
// Maps JavaScript API keys are public client-side keys (lock them down by
// HTTP-referrer in the Google Cloud console). The env var lets deployments
// override the default key without a code change.
//
// NOTE: the fallback key below is EXPIRED (confirmed via live request —
// "Google Maps JavaScript API error: ExpiredKeyMapError"), which renders
// this picker's map blank while the search box spins forever. Set
// VITE_GOOGLE_MAPS_API_KEY (see .env.example) to a live key to fix it; don't
// rely on this default.
const GOOGLE_MAPS_API_KEY =
import.meta.env.VITE_GOOGLE_MAPS_API_KEY ||
"AIzaSyBg4tN31-fgvH_2Ix_TPo6VSfOA2uA5CCI";