DEV Community

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

Collapse
 
dengel29 profile image
Dan

If you're still facing this problem, Github has a way for you to store secret or environment variables. If your goals is to hit the podcast API and save the JSON response in your project, you can use a Github action that does that: it will hit the API, gets the JSON response, put that JSON into a specific file or folder of your choosing in your project, then update your repository. I have one that does exactly that, except I hit an Airtable API for some spreadsheet info. Contact me if you want any help with it.

Collapse
 
alexlsalt profile image
Alex Morton

Thanks Dan, I'll definitely look in to this. Appreciate it!