feat(games): register chess plugin on server startup
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -3,9 +3,14 @@ import { env } from "@shared/lib/env";
|
|||||||
import { join } from "node:path";
|
import { join } from "node:path";
|
||||||
import { initializeConfig } from "@shared/lib/config";
|
import { initializeConfig } from "@shared/lib/config";
|
||||||
import { registerDomainEventListeners } from "@shared/lib/eventWiring";
|
import { registerDomainEventListeners } from "@shared/lib/eventWiring";
|
||||||
|
import { gameRegistry } from "@shared/games/registry";
|
||||||
|
import { chessPlugin } from "@shared/games/chess/plugin";
|
||||||
|
|
||||||
import { startWebServerFromRoot } from "../api/src/server";
|
import { startWebServerFromRoot } from "../api/src/server";
|
||||||
|
|
||||||
|
// Register game plugins
|
||||||
|
gameRegistry.register(chessPlugin);
|
||||||
|
|
||||||
// Initialize config from database
|
// Initialize config from database
|
||||||
await initializeConfig();
|
await initializeConfig();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user