How to set up a development and production database with Prisma
I'm trying to set up two databases with prisma but there isn't much info available. I am trying to use a local postgres db for my dev db and supabase for my prod db.
This is giving me an error in the schema file so im not sure how to go about doing this.
3 Replies
You only need one
datasource
, just change your DATABASE_URL
environment variable to switch databasesokay 👍
didnt think about that ty
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View