From 2f065e6b3793f2c2d4ab196a341cf23efb721011 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Tue, 10 Jan 2023 13:19:05 +1100 Subject: Move sentry init to util. use sentry in each module, not just bundle --- src/cdn/start.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/cdn/start.ts') diff --git a/src/cdn/start.ts b/src/cdn/start.ts index c22984fa..4b619c25 100644 --- a/src/cdn/start.ts +++ b/src/cdn/start.ts @@ -1,6 +1,5 @@ require("module-alias/register"); -import dotenv from "dotenv"; -dotenv.config(); +import "dotenv/config"; import { CDNServer } from "./Server"; const server = new CDNServer({ port: Number(process.env.PORT) || 3003 }); -- cgit 1.5.1