Skip to content

Commit

Permalink
(fix): vecel deploys robustly handle revalidation failures (#1230)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsinghvi authored Aug 1, 2024
1 parent af1c6ea commit c0c793f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,11 @@ jobs:
for DOMAIN in ${ALIAS_DOMAINS[@]}; do
if [[ "$DOMAIN" != *"buildwithfern.com"* ]] && [[ "$DOMAIN" != *"vercel.app"* ]]; then
curl -s -X POST "https://$DOMAIN/api/revalidate-all" -H "x-fern-host: $DOMAIN"
echo "Revalidated: $DOMAIN"
if curl -s -X POST "https://$DOMAIN/api/revalidate-all" -H "x-fern-host: $DOMAIN"; then
echo "Revalidated: $DOMAIN"
else
echo "Failed to revalidate $DOMAIN, but continuing with other domains"
fi
fi
done
Expand Down

0 comments on commit c0c793f

Please sign in to comment.