Refactor: Extract build constants

This commit is contained in:
2026-02-26 17:38:50 -08:00
parent 342a2eccd7
commit 32419c3db9

17
scripts/lib/constants.mjs Normal file
View File

@@ -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: ""
}
];