Skip to content

Commit

Permalink
modificacion .env para añadir llave mapa
Browse files Browse the repository at this point in the history
  • Loading branch information
luzmagurzua committed Oct 30, 2024
1 parent 4002f24 commit 707515a
Show file tree
Hide file tree
Showing 3 changed files with 899 additions and 93 deletions.
4 changes: 3 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@

VITE_AUTH0_AUDIENCE=https://geomapp-auth0.com
VITE_AUTH0_DOMAIN=dev-cry4u1cfzw5tvn48.us.auth0.com
VITE_AUTH0_CLIENT_ID=emBP1HbVJ1ltKKluxpiVA0wye8USrA4Z
VITE_AUTH0_CLIENT_ID=emBP1HbVJ1ltKKluxpiVA0wye8USrA4Z

VITE_GOOGLE_MAPS_API_KEY=AIzaSyAJuzF9SX5VP6CU38hq-lgRopJ66jYgb5E
2 changes: 1 addition & 1 deletion src/components/GoogleMap.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ const GoogleMapComponent = ({ onMapLoad, filterType, places }) => {
return (
<div style={containerStyle}>
<div style={mapStyle}>
<LoadScript googleMapsApiKey="AIzaSyAJuzF9SX5VP6CU38hq-lgRopJ66jYgb5E">
<LoadScript googleMapsApiKey={import.meta.env.VITE_GOOGLE_MAPS_API_KEY}>
<GoogleMap
mapContainerStyle={mapStyle}
center={userLocation}
Expand Down
Loading

0 comments on commit 707515a

Please sign in to comment.