/**
 * Self-check: publicConfig TTL alignment (45s).
 * Run: npx --yes tsx src/lib/publicConfig.check.ts
 */
import { CLIENT_TTL } from './clientCache.ts';

let passed = 0;
function assert(cond: boolean, msg: string) {
  if (!cond) throw new Error(msg);
  passed += 1;
}

assert(CLIENT_TTL.publicConfig === 45_000, 'FE publicConfig TTL is 45s');
assert(CLIENT_TTL.matchesList === 15_000, 'matches list TTL');
console.log(`publicConfig.check: ${passed} asserts ok`);
