mirror of
https://github.com/apophenia-news/apophenia.news.git
synced 2026-10-14 08:07:53 +00:00
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>
21 lines
712 B
JavaScript
21 lines
712 B
JavaScript
import path from "node:path";
|
|
|
|
export const ROOT = process.cwd();
|
|
export const SRC = path.join(ROOT, "src");
|
|
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 = [
|
|
{
|
|
slug: "renox",
|
|
name: "Renox",
|
|
bio: "Renox is the founder of apophenia.news.",
|
|
contact: "planetrenox@pm.me",
|
|
image: ""
|
|
}
|
|
];
|