migrate before build

This commit is contained in:
keyan 2021-06-06 10:09:01 -04:00
parent b8ea1dc765
commit 218d3120f8
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,8 @@
#!/usr/bin/env bash
echo primsa migrate
npm run migrate
echo build with npm
npm run build

View File

@ -5,6 +5,7 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"migrate": "prisma migrate deploy",
"start": "next start -p $PORT"
},
"dependencies": {