Hello all, I have a question about managing API keys.
Currently I store my single Google Maps API key in a JS file as plain text.
In future, I am planning to have multiple keys, one per environment:
- Dev-API-key for my local environment
- Prod-API-key for my prod environment
I’d like to use my Dev-API-key when I develop on local. I’d like to inject my Prod-API-key into my site when I deploy to remote.
What’s the best way to manage unique per environment Google Maps API keys? Thanks