fix: server di error

This commit is contained in:
Draculabo authored and vin committed 2026-01-10 01:07:09 +08:00
1 parent bc775d4fd6
commit 098cbe3eb9
6 files changed
+1328 -13

No files matched your search

+6 -2
View File
@@ -13,8 +13,12 @@ export const startGateway = async (port: number): Promise<boolean> => {
try {
// Stop if already running
await stopNestServer();
// Start NestJS server
return await bootstrapNestServer(port);
// Load full config and start NestJS server
const config = ConfigManager.loadConfig();
const proxyConfig = { ...config.proxy, port };
return await bootstrapNestServer(proxyConfig);
} catch (e) {
console.error('Failed to start gateway:', e);
return false;