mirror of
https://github.com/apophenia-news/apophenia.news.git
synced 2026-03-17 03:11:01 +00:00
Refactor: Extract build constants
This commit is contained in:
17
scripts/lib/constants.mjs
Normal file
17
scripts/lib/constants.mjs
Normal 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: ""
|
||||
}
|
||||
];
|
||||
Reference in New Issue
Block a user