feat: revalidate-all fetches all articles; add revalidate-all script; fix HOLOSTARS image

This commit is contained in:
achmad
2026-05-29 02:50:25 +07:00
parent a2fba503e3
commit 488ad051fb
2 changed files with 24 additions and 4 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/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 .