From 32419c3db94527775b56aa98c8de752318258c2e Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Thu, 26 Feb 2026 17:38:50 -0800 Subject: [PATCH] Refactor: Extract build constants --- scripts/lib/constants.mjs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 scripts/lib/constants.mjs diff --git a/scripts/lib/constants.mjs b/scripts/lib/constants.mjs new file mode 100644 index 0000000..f2e4509 --- /dev/null +++ b/scripts/lib/constants.mjs @@ -0,0 +1,17 @@ +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 ARTICLES_GLOB = "articles/**/index.md"; +export const SITE_URL = (process.env.SITE_URL || "https://apophenia.news").replace(/\/+$/, ""); + +export const AUTHOR_PAGES = [ + { + slug: "renox", + name: "Renox", + bio: "Renox is the founder of apophenia.news.", + contact: "planetrenox@pm.me", + image: "" + } +];