Feat: Add Cloudflare Turnstile to newsletter signup

Renders an interaction-only Turnstile widget on /newsletter/ and sends its
token to newsletter.planetrenox.com/api/sub, which verifies it server side.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-28 14:08:15 +00:00
co-authored by Claude Opus 5.5
parent a6969b0593
commit 80139d559b
2 changed files with 12 additions and 3 deletions
+2
View File
@@ -6,6 +6,8 @@ export const PUBLIC = path.join(ROOT, "public");
export const UNLISTED_PATH = path.join(ROOT, "unlisted.txt");
export const ARTICLES_GLOB = "articles/**/index.md";
export const SITE_URL = (process.env.SITE_URL || "https://apophenia.news").replace(/\/+$/, "");
// Public site key of the "newsletter" Turnstile widget (secret lives on newsletter.planetrenox.com)
export const TURNSTILE_SITE_KEY = "0x4AAAAAAFG4HWETOcDDQ5vg";
export const AUTHOR_PAGES = [
{