From 6c64d2e6d5cca6ac7e82d3f9ece651eaa55a657a Mon Sep 17 00:00:00 2001 From: dank074 Date: Sun, 20 Jul 2025 18:45:02 -0500 Subject: [PATCH] move dotenv.config() to top o file --- src/webrtc/Server.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/webrtc/Server.ts b/src/webrtc/Server.ts index 08f9439f..f43b3725 100644 --- a/src/webrtc/Server.ts +++ b/src/webrtc/Server.ts @@ -15,9 +15,9 @@ You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ - -import { closeDatabase, Config, initDatabase, initEvent } from "@spacebar/util"; import dotenv from "dotenv"; +dotenv.config(); +import { closeDatabase, Config, initDatabase, initEvent } from "@spacebar/util"; import http from "http"; import ws from "ws"; import { Connection } from "./events/Connection"; @@ -29,7 +29,6 @@ import { WRTC_PUBLIC_IP, } from "./util/MediaServer"; import { green, yellow } from "picocolors"; -dotenv.config(); export class Server { public ws: ws.Server;