diff --git a/scripts/revalidate-all.sh b/scripts/revalidate-all.sh deleted file mode 100644 index 0971311..0000000 --- a/scripts/revalidate-all.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail - -URL="${1:-https://kotobane.achmad.dev}" -SECRET="${REVALIDATE_SECRET:-1964edNGrm1xqE2oznfeahdheP7oAfwAob4fIxe1Gzo}" - -echo "==> Revalidating all pages (homepage + categories + articles) on $URL ..." -curl -s -X POST "$URL/api/revalidate" \ - -H "Content-Type: application/json" \ - -d "{\"secret\":\"$SECRET\",\"type\":\"all\"}" | jq .