OneSignalDevelopers / ngosi

Share your slides with a QR code
https://ngosi.io
MIT License
9 stars 5 forks source link

Conditionally deploy db based on Vercel #16

Closed iAmWillShepherd closed 2 years ago

iAmWillShepherd commented 2 years ago

Our database deploy steps are similar across dev/preview and production builds. We actually want to handle how we deploy to each environment differently.

  1. dev/preview - We want to sync schema and never care about data.
  2. production - We want to use the current deploy strategy, which mitigates data loss.
iAmWillShepherd commented 2 years ago

We no longer need this now that we've switched away from Prisma. Now all that's needed is to update the env variables.