Skip to content

Commit

Permalink
Add ignored build step
Browse files Browse the repository at this point in the history
  • Loading branch information
krystof-k committed May 1, 2024
1 parent cebbc66 commit 356caab
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
14 changes: 14 additions & 0 deletions frontend/ignored-build-step.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

echo "VERCEL_PROJECT_PRODUCTION_URL: $VERCEL_PROJECT_PRODUCTION_URL"

if [[ "$VERCEL_PROJECT_PRODUCTION_URL" == "archiv.volebnikalkulacka.cz" ]] ; then
# Proceed with the build
echo "✅ - Build can proceed"
exit 1;

else
# Don't build
echo "🛑 - Build cancelled"
exit 0;
fi
3 changes: 2 additions & 1 deletion frontend/vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
"destination": "/"
}
],
"trailingSlash": false
"trailingSlash": false,
"ignoreCommand": "bash ignored-build-step.sh"
}

0 comments on commit 356caab

Please sign in to comment.