Skip to content

Commit

Permalink
chore: purge bunny.net cache
Browse files Browse the repository at this point in the history
Refs: #943
  • Loading branch information
subzero10 committed Dec 30, 2022
1 parent 0343c0c commit e442088
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/js/scripts/release-cdn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,9 @@ aws s3 sync dist/browser/ s3://$HONEYBADGER_JS_S3_BUCKET/$PREFIX \
--include 'honeybadger-feedback-form.js'

aws cloudfront create-invalidation --distribution-id $HONEYBADGER_DISTRIBUTION_ID --paths "/$PREFIX/*"

# purge bunny.net cache
curl --request GET \
--url "https://api.bunny.net/purge?url=https%3A%2F%2Fjs.honeybadger.io%2F$PREFIX%2F%2A&async=false" \
--header "AccessKey: $BUNNY_API_KEY" \
--header 'accept: application/json'

0 comments on commit e442088

Please sign in to comment.