feat: add type=all to revalidate all category pages

This commit is contained in:
achmad
2026-05-29 02:10:49 +07:00
parent 23d2d31a27
commit 953a222b35
2 changed files with 23 additions and 3 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ set -euo pipefail
URL="${1:-https://kotobane.achmad.dev}"
SECRET="${REVALIDATE_SECRET:-1964edNGrm1xqE2oznfeahdheP7oAfwAob4fIxe1Gzo}"
echo "==> Revalidating $URL ..."
echo "==> Revalidating homepage + all categories on $URL ..."
curl -s -X POST "$URL/api/revalidate" \
-H "Content-Type: application/json" \
-d "{\"secret\":\"$SECRET\",\"type\":\"homepage\"}" | jq .
-d "{\"secret\":\"$SECRET\",\"type\":\"all\"}" | jq .