mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +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";
|
||||
|
||||
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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user