mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
infrastructure for inline vfs and clients
This commit is contained in:
1 parent
d81d885767
commit
39745dd475
19 files changed
+133
-64
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import {
|
||||
ClientBlitzKitAPI,
|
||||
ServerBlitzKitAPI,
|
||||
type BlitzKitAPI,
|
||||
} from "@blitzkit/core";
|
||||
|
||||
let _api: BlitzKitAPI;
|
||||
|
||||
if (import.meta.env.SSR) {
|
||||
_api = new ServerBlitzKitAPI();
|
||||
} else {
|
||||
_api = new ClientBlitzKitAPI();
|
||||
}
|
||||
|
||||
export const api = _api;
|
||||
Reference in new issue
Block a user