Skip to content

Commit ff10516

Browse files
authored
Remove dotenv from API dependencies (#258)
1 parent 595cf0b commit ff10516

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/api/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
genericConfig,
1212
SecretConfig,
1313
} from "../common/config.js";
14-
import * as dotenv from "dotenv";
1514
import { STSClient, GetCallerIdentityCommand } from "@aws-sdk/client-sts";
1615
import NodeCache from "node-cache";
1716
import { DynamoDBClient } from "@aws-sdk/client-dynamodb";
@@ -69,8 +68,6 @@ export const instanceId = randomUUID();
6968
const __filename = fileURLToPath(import.meta.url);
7069
const __dirname = path.dirname(__filename);
7170

72-
dotenv.config();
73-
7471
const now = () => Date.now();
7572
const isRunningInLambda =
7673
process.env.LAMBDA_TASK_ROOT || process.env.AWS_LAMBDA_FUNCTION_NAME;

src/api/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"aws-crt": "^1.27.3",
4040
"base64-arraybuffer": "^1.0.2",
4141
"discord.js": "^14.19.1",
42-
"dotenv": "^17.2.1",
4342
"esbuild": "^0.25.3",
4443
"fastify": "^5.3.2",
4544
"fastify-ip": "^2.0.0",
@@ -74,4 +73,4 @@
7473
"pino-pretty": "^13.1.1",
7574
"yaml": "^2.8.0"
7675
}
77-
}
76+
}

0 commit comments

Comments
 (0)