-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add production builds script for Vercel
- Loading branch information
1 parent
8193b03
commit c787018
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
# Use this script to only deploy production builds | ||
# https://vercel.com/docs/platform/projects#ignored-build-step | ||
# https://vercel.com/support/articles/how-do-i-use-the-ignored-build-step-field-on-vercel#with-a-script | ||
|
||
echo "VERCEL_ENV: $VERCEL_ENV" | ||
|
||
if [[ "$VERCEL_ENV" == "production" ]] ; then | ||
# Proceed with the build | ||
echo "✅ - Build can proceed" | ||
exit 1; | ||
|
||
else | ||
# Don't build | ||
echo "🛑 - Build cancelled" | ||
exit 0; | ||
fi |
c787018
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
staging-app – ./
staging-app-tau.vercel.app
staging-app-balancer.vercel.app
staging.app.balancer.fi
staging-app-git-develop-balancer.vercel.app
c787018
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
staging-kovan-app – ./
staging-kovan-app-git-develop-balancer.vercel.app
staging-kovan-app.vercel.app
staging-kovan-app-balancer.vercel.app
staging.kovan.app.balancer.fi