AfterClass-io / afterclass.io-v2

[alpha] v2 of https://afterclass.io!
https://afterclass-io.vercel.app
MIT License
4 stars 2 forks source link

[devops] setup basic feature flags #135

Open davidlhw opened 1 month ago

davidlhw commented 1 month ago

Context

currently, we are nervous when pushing out new changes as it takes the risk of potentially destroying other features and functionalities.

the aim of using feature flags (ways to toggle a particular feature) is so that we can do the following with ease:

Features

Potential Avenues to Explore

  1. server-side runtime environment variables (toggle on vercel)
  2. store config json file somewhere and read from it
  3. integration with posthog feature flags
  4. store configs on db, with a relationship to a particular user, then use nextauth to store these configs as user objects