We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35f1eec commit 91ab014Copy full SHA for 91ab014
packages/api/index.ts
@@ -1,6 +1,13 @@
1
+import dotenv from "dotenv";
2
+
3
+dotenv.config({
4
+ path: "./.env",
5
+});
6
7
import { SocketIoInstrumentation } from "@opentelemetry/instrumentation-socket.io";
8
import * as Sentry from "@sentry/node";
-import dotenv from "dotenv";
9
10
11
import type { Socket } from "socket.io";
12
import type { NamespaceProxyTarget } from "socket-call-server";
13
@@ -45,10 +52,6 @@ export type UserServices<OptionalUser = false> = NamespaceProxyTarget<
45
52
return int ?? this.toString();
46
53
};
47
54
48
-dotenv.config({
49
- path: "./.env",
50
-});
51
-
55
// Validate required environment variables
56
const requiredEnvVars = [
57
'DATABASE_URL_DM',
0 commit comments