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 # make sure it's in path
sudo ln -s "$(npm bin --global)"/yarn /usr/bin/yarn sudo ln -s "$(npm bin --global)"/yarn /usr/bin/yarn
echo gen primsa client
prisma generate
echo try to build echo try to build
# build it # build it

View File

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