Closed Tinxte closed 1 month ago
VITE_
prefix:
https://stackoverflow.com/a/76690218Follow these steps to set up locally:
.env
. Make sure you don't place this in the src directory.VITE_GOOGLE_MAPS_API_KEY=value
value
with your API key from Google Maps API..gitignore
file. Insert a line for .env
I have successfully set up my local key and shared the above setup instructions with the group over messages. Marking this issue as completed.
Summary:
VITE_
so we may call the API in our React app without Vite exposing its key.Related to:
External API Usage