From b6fbcf1c4f6e75120518b9e3b947447cdb698654 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Fri, 13 Aug 2021 20:53:29 +0200 Subject: :bug: fix dependencies and build for bundle --- bundle/src/Server.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'bundle/src') diff --git a/bundle/src/Server.ts b/bundle/src/Server.ts index 14abc128..19d9e168 100644 --- a/bundle/src/Server.ts +++ b/bundle/src/Server.ts @@ -22,12 +22,14 @@ const cdn = new CDNServer({ server, port, production, app }); const gateway = new GatewayServer({ server, port, production }); async function main() { + await Config.set({ + cdn: { endpointClientKeepDefault: true, endpoint: `http://localhost:${port}` }, + gateway: { endpointClientKeepDefault: true, endpoint: `ws://localhost:${port}` }, + }); + await api.start(); await cdn.start(); await gateway.start(); - - if (!Config.get().gateway.endpoint) await Config.set({ gateway: { endpoint: `ws://localhost:${port}` } }); - if (!Config.get().cdn.endpoint) await Config.set({ cdn: { endpoint: `http://localhost:${port}` } }); } main().catch(console.error); -- cgit 1.5.1