Refresh UI components and showcase; release updated framework packages

This commit is contained in:
Clintchiz committed 2026-09-20 18:13:24 +05:30
1 parent d800228585
commit c77f5e1cec
293 files changed
+22544 -35778

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
/** Deployment-time connection overrides for immutable production images. */
export function productionConnections(value = process.env.WRNEXUS_RUNTIME_CONNECTIONS) {
if (!value) return {};
const parsed = JSON.parse(value);
if (!parsed || typeof parsed !== "object" || Array.isArray(parsed))
throw new Error("WRNEXUS_RUNTIME_CONNECTIONS must be a JSON object");
const allowed = new Set(["db", "databases", "realtime", "queue", "storage"]);
for (const key of Object.keys(parsed)) {
if (!allowed.has(key)) throw new Error(`Unsupported runtime connection: ${key}`);
if (!parsed[key] || typeof parsed[key] !== "object" || Array.isArray(parsed[key]))
throw new Error(`Runtime connection ${key} must be an object`);
}
return parsed;
}