Developer-DAO / DAO-job-board

A job board connecting DAOs with talent.
https://devdao-job-board.vercel.app/
82 stars 34 forks source link

ensure we can strongly type our supabase tables #116

Closed JoviDeCroock closed 2 years ago

JoviDeCroock commented 2 years ago

This PR adds the generate:types script, ideally we'll use this from CI before we run tsc but I'd prefer deferring this to a new PR as we'd need to add a DOPPLER_KEY to the github secrets so we can use it in CI to login to doppler and I'm not allowed to do so (CC @with-heart).

For now, every time we change something in the database schema, we'll have to run yarn generate:types which will rewrite types/supabase and these can then be used as a ts-generic as shown in /api/auth.ts

resolves #75

vercel[bot] commented 2 years ago

@JoviDeCroock is attempting to deploy a commit to the Developerdao Team on Vercel.

A member of the Team first needs to authorize it.