codefortulsa / website

Code For Tulsa Website Update 2022
https://www.figma.com/file/maf7XD1XhbIKlJn77P2tIS/Code-for-Tulsa-Website?node-id=0%3A1
8 stars 10 forks source link

Configure secrets on GH and Heroku for buildtime data fetching #111

Open zenlex opened 2 years ago

zenlex commented 2 years ago

To facilitate static site build, we will use Next's getStaticProps() method to fetch data from GitHub Repos, Meetup, and Google Sheets. This will require configuration of secrets on both GitHub and Heroku. The data fetch will get run on each build, so the repo secrets will facilitate PR testing, and the Heroku secrets will facilitate deployment fetches. If there are no changes to the site other than potential updates to the external datasets, we should be able to just redeploy to update data to latest.

zenlex commented 2 years ago

Need to decide on approach for local development - either dummy dataset with shared keys or a secret sharing solution on a need to know basis for people working on those components.

zenlex commented 2 years ago

We will just pass keys to devs on a need to know basis and rotate if issues are suspected.