Prisma deployment
We used AI while writing this content.
To deploy Prisma, you should create a second database in your Prisma project.

mv .env .env.dev
Then create a env.production file similar to your env file, with the production database url.
DATABASE_URL=<production-database-url>
Then you can run :
cp .env.production .env
npm install --save-dev dotenv-cli
dotenv -e .env.production -- npx prisma migrate deploy
You can easily switch back to the dev database later with
cp .env.dev .env
Member discussion