diff --git a/site/api/live.mjs b/site/api/live.mjs index 9450c5b43..4bfd7ef87 100644 --- a/site/api/live.mjs +++ b/site/api/live.mjs @@ -2,11 +2,12 @@ // {now, state (incl. height = chain block number), blocks (last 90 s, or ?window=N up to 1800, at most 1,800 blocks), miners (last 10 min), events (last 30), finality (checkpoints, newest lock), // proving (activation and 10-minute counts; every chain block carries shards: [{i, state, prover, lag, payout}])}. // Five queries, all on indexed columns. Cached one second at the edge. -// LIVE_TABLE_PREFIX (default empty) reads a test observer's tables (fintest_live_*, provtest_live_*) instead of the devnet's. +// LIVE_TABLE_PREFIX (default dn3_: Devnet 3, the igneum-observer-dn3 unit on build-1, chain id 4463, igneum-devnet-3, from +// 7 October 2026 evening on Josh's word) reads another observer's tables (empty = the first devnet's, fintest_live_*, provtest_live_*). // Zero dependencies: Neon's HTTP SQL endpoint over Node's built-in fetch. const STALE_AFTER_S = 30; -const T = (process.env.LIVE_TABLE_PREFIX || '').replace(/[^a-z0-9_]/gi, ''); +const T = (process.env.LIVE_TABLE_PREFIX === undefined ? 'dn3_' : process.env.LIVE_TABLE_PREFIX).replace(/[^a-z0-9_]/gi, ''); function neon() { const url = process.env.DATABASE_URL; diff --git a/site/live.html b/site/live.html index 508385351..1dd07d165 100644 --- a/site/live.html +++ b/site/live.html @@ -222,7 +222,7 @@ details.tablebar summary{display:flex;align-items:center} IGNEUM - devnet + devnet