diff --git a/functions/.env.example b/functions/.env.example index 7f1bf60..8f998fb 100644 --- a/functions/.env.example +++ b/functions/.env.example @@ -7,5 +7,5 @@ TWILIO_PHONE_NUMBER=#{TWILIO_PHONE_NUMBER}# SERVICES_RGN=#{SERVICES_RGN}# CASHFREE_CLIENT_ID=#{CASHFREE_CLIENT_ID}# CASHFREE_CLIENT_SECRET=#{CASHFREE_CLIENT_SECRET}# -GOOGLE_PLACES_API_KEY=#{GOOGLE_PLACES_API_KEY}# +GOOGLE_MAPS_API_KEY=#{GOOGLE_MAPS_API_KEY}# diff --git a/functions/src/index.ts b/functions/src/index.ts index b369f00..c1daa19 100644 --- a/functions/src/index.ts +++ b/functions/src/index.ts @@ -425,7 +425,7 @@ export const getPlacesAutocomplete = onRequest({ return; } - const apiKey = process.env.GOOGLE_PLACES_API_KEY; + const apiKey = process.env.GOOGLE_MAPS_API_KEY; if (!apiKey) { logger.error('Google Places API key is not configured'); response.status(500).json({ error: 'Server configuration error' });