DEV Community

Discussion on: How Can I Access Environment Variables in My Static Website?

Collapse
 
dengel29 profile image
Dan

This is totally doable via Github Actions, and Github gives you a way to have secrets or environment variables accessible via the Action. I have one that calls Airtable twice daily using the API key, pulls the json into the repo and rebuilds the website with the updated information. Totally viable and can be set to run on a schedule so you can set it and forget it!