diff --git a/www/docs/vercel-ignore.sh b/www/docs/vercel-ignore.sh new file mode 100644 index 0000000000..c82fcd1adb --- /dev/null +++ b/www/docs/vercel-ignore.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +current_branch=$(git branch --show-current) + +if [[ "$VERCEL_DEPLOY_BRANCHES" == *"$current_branch"* ]]; then + echo "Branch allowed to deploy" + exit 1; +else + echo "Branch not allowed to deploy" + exit 0; +fi \ No newline at end of file