mirror of
https://github.com/apophenia-news/apophenia.news.git
synced 2026-10-19 18:34:51 +00:00
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:
@@ -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 = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user