move hook to prebuild

This commit is contained in:
keyan 2021-06-04 18:32:16 -04:00
parent 71a22f9a41
commit a24cc9b5a5
2 changed files with 4 additions and 2 deletions

View File

@ -10,6 +10,9 @@ echo link
# make sure it's in path
sudo ln -s "$(npm bin --global)"/yarn /usr/bin/yarn
echo gen primsa client
prisma generate
echo try to build
# build it

View File

@ -5,8 +5,7 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start -p 8080",
"prestart": "prisma generate"
"start": "next start -p $PORT"
},
"dependencies": {
"@apollo/client": "^3.3.13",