Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
address review: guard readMeta against corrupt meta.json
[._.]/ Adam Eivy06216c532cfb
diff --git a/scripts/setup-cert.js b/scripts/setup-cert.jsindex 12b2d3efac..51f0c2be21 100644--- a/scripts/setup-cert.js+++ b/scripts/setup-cert.js@@ -136,7 +136,14 @@ ${buildSANs(ips)}function readMeta() {if (!existsSync(META_PATH)) return null;- return JSON.parse(readFileSync(META_PATH, 'utf-8'));+ try {+ return JSON.parse(readFileSync(META_PATH, 'utf-8'));+ } catch {+ // Partial/corrupt meta.json (e.g. interrupted write) — treat as absent so+ // the script falls through to its normal "no usable cert state" branches+ // instead of crashing `npm start` before the server can even boot HTTP.+ return null;+ }}function certExpiresAt() {