better ssr checking

This commit is contained in:
tresabhi committed 2026-05-18 16:21:23 -05:00
1 parent bd140f0eda
commit 6c31f663f6
3 files changed
+3 -65

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ import type { AbstractAPI } from "./abstract";
let dynamicAPI: AbstractAPI;
if (typeof window === "undefined") {
if (import.meta.env.SSR) {
const { ProxyClient } = await import("@blitzkit/closed");
const { ServerAPI } = await import("./server");