syntaxai/tdd.md · main · src / a31_site_config.ts

a31_site_config.ts 20 lines · 914 bytes raw
// c31 — model: site-wide config constants. Pure data, no I/O.
// Lives here so handlers across clusters (sama-verify dogfood,
// reports/live, sitemap, etc.) reference the same values without
// circular imports between c21_handlers_*.

// Canonical absolute base for every public URL the site emits
// (sitemap, og:url, canonical link, RSS, etc.). No trailing slash.
export const SITE_BASE_URL = "https://tdd.md";

export const LIVE_REPO_OWNER = "syntaxai";
export const LIVE_REPO_NAME = "tdd.md";
// Number of recent commits the live-reports view samples from the
// in-container git-history bundle.
export const LIVE_FETCH_COUNT = 100;

// Owner / admin GitHub login. The CMS edit handler (c21_handlers_edit)
// only allows POSTs from this username — anyone else gets a 403 wall.
// Override per-environment via TDD_ADMIN_USER if needed.
export const ADMIN_USERNAME = process.env.TDD_ADMIN_USER ?? "syntaxai";