fix: assert wotb server

This commit is contained in:
TrèsAbhi committed 2025-12-26 11:33:04 -06:00
1 parent 010303a818
commit 1d3cb95b89
1 file changed
+2 -1
+2 -1
View File
@@ -1,3 +1,4 @@
import { assertSecret } from "@blitzkit/core";
import type { AbstractAPI } from "./abstract";
let dynamicAPI: AbstractAPI;
@@ -7,7 +8,7 @@ if (typeof window === "undefined") {
const { ServerAPI } = await import("./server");
const proxyClient = await new ProxyClient(
import.meta.env.WOTB_SERVER
assertSecret(import.meta.env.WOTB_SERVER)
).handshake();
const metadata = await proxyClient.metadata();