mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
caching
This commit is contained in:
1 parent
ed31f40876
commit
30522bfda0
2 files changed
+75
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import {
|
||||
ClientBlitzKitAPI,
|
||||
LocalVFS,
|
||||
ServerBlitzKitAPI,
|
||||
type BlitzKitAPI,
|
||||
} from "@blitzkit/core";
|
||||
@@ -7,6 +8,10 @@ import {
|
||||
let _api: BlitzKitAPI;
|
||||
|
||||
if (import.meta.env.SSR) {
|
||||
const vfs = new LocalVFS(
|
||||
"/run/media/tresabhi/Windows/Program Files/WindowsApps/7458BE2C.WorldofTanksBlitz_11.19.272.0_x64__x4tje2y229k00",
|
||||
);
|
||||
|
||||
_api = await new ServerBlitzKitAPI(vfs).init();
|
||||
} else {
|
||||
_api = new ClientBlitzKitAPI();
|
||||
|
||||
Reference in new issue
Block a user