mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 18:34:02 +00:00
Use a separate optional server key for Places and Street View, with consistent local and Pinokio configuration, server-first CLI selection, and credential isolation checks. Original contribution by Tom-Neverwinter; reviewed and completed by Sameh Khamis. Co-authored-by: Tom-Neverwinter <[email protected]> Co-authored-by: Sameh Khamis <[email protected]>
6 lines
318 B
JavaScript
6 lines
318 B
JavaScript
/** Resolve server credentials after applying environment overrides per key. */
|
|
export function resolveGoogleServerKey(environment = {}, defaults = {}) {
|
|
const value = (name) => String(environment[name] ?? defaults[name] ?? '').trim();
|
|
return value('GOOGLE_MAPS_SERVER_API_KEY') || value('GOOGLE_MAPS_API_KEY');
|
|
}
|