mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 12:09:51 +02:00
better ssr checking
This commit is contained in:
1 parent
bd140f0eda
commit
6c31f663f6
3 files changed
+3
-65
No files matched your search
@@ -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");
|
||||
|
||||
|
||||
Reference in new issue
Block a user