Skip to content

Commit

Permalink
Merge branch 'kalkulacka-one:testvot' into testvot
Browse files Browse the repository at this point in the history
  • Loading branch information
hidegmisi authored Nov 27, 2024
2 parents 26806a9 + b2b39a5 commit ba3326d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/vercel-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ else
echo "Building for preview environment, using a clean database for \`$VERCEL_GIT_COMMIT_REF\` branch"
GIT_COMMIT_REF_SHA=$(echo -n $VERCEL_GIT_COMMIT_REF | openssl dgst -sha256 | sed 's/^.* //')
export DATABASE_URL="$DATABASE_URL_BASE/$GIT_COMMIT_REF_SHA"
prisma generate && prisma migrate reset --force && npm run build-only:preview && cp -r ../data ./dist/
prisma generate
prisma db execute --file=<(echo "DROP SCHEMA public CASCADE; CREATE SCHEMA public;") --preview-feature
prisma migrate deploy && npm run build-only:preview && cp -r ../data ./dist/
fi

0 comments on commit ba3326d

Please sign in to comment.