mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 12:09:51 +02:00
fix: assert wotb server
This commit is contained in:
1 parent
010303a818
commit
1d3cb95b89
1 file changed
+2
-1
@@ -1,3 +1,4 @@
|
|||||||
|
import { assertSecret } from "@blitzkit/core";
|
||||||
import type { AbstractAPI } from "./abstract";
|
import type { AbstractAPI } from "./abstract";
|
||||||
|
|
||||||
let dynamicAPI: AbstractAPI;
|
let dynamicAPI: AbstractAPI;
|
||||||
@@ -7,7 +8,7 @@ if (typeof window === "undefined") {
|
|||||||
const { ServerAPI } = await import("./server");
|
const { ServerAPI } = await import("./server");
|
||||||
|
|
||||||
const proxyClient = await new ProxyClient(
|
const proxyClient = await new ProxyClient(
|
||||||
import.meta.env.WOTB_SERVER
|
assertSecret(import.meta.env.WOTB_SERVER)
|
||||||
).handshake();
|
).handshake();
|
||||||
const metadata = await proxyClient.metadata();
|
const metadata = await proxyClient.metadata();
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user