mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-23 06:04:32 +01:00
externalize game
This commit is contained in:
1 parent
152e0a6680
commit
333866a9d6
4 files changed
+15
-16
No files matched your search
@@ -4,8 +4,9 @@ import { clientUnmounted } from "./unmounted";
|
||||
|
||||
let _game: GameInterface | null = null;
|
||||
|
||||
if (!clientUnmounted) {
|
||||
if (!clientUnmounted && import.meta.env.SSR) {
|
||||
const { GameInterface } = await import("@blitzkit/game");
|
||||
|
||||
_game = new GameInterface(
|
||||
assertSecret(import.meta.env.PUBLIC_WOTB_CLIENT),
|
||||
assertSecret(import.meta.env.WOTB_USMAP),
|
||||
|
||||
Reference in new issue
Block a user