Skip to content

Commit

Permalink
🖨️ Add prisma deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Dec 7, 2021
1 parent 54a641b commit e2659b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"scripts": {
"dev": "dotenv -e ../../.env next dev",
"build": "next build",
"build:prod": "yarn workspace @typebot/prisma deploy && next build",
"start": "next start",
"lint": "next lint",
"cypress": "cypress open"
Expand Down
3 changes: 2 additions & 1 deletion packages/prisma/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"@prisma/client": "latest"
},
"scripts": {
"prisma": "dotenv -e ../../.env prisma"
"prisma": "dotenv -e ../../.env prisma",
"deploy": "prisma generate && prisma migrate deploy"
}
}

1 comment on commit e2659b4

@vercel
Copy link

@vercel vercel bot commented on e2659b4 Dec 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.