File size: 539 Bytes
81fc505 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | import dotenv from "dotenv";
import path from "node:path";
import { fileURLToPath } from "node:url";
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const repoRoot = path.resolve(__dirname, "../../..");
dotenv.config({ path: path.join(repoRoot, ".env") });
dotenv.config();
export const env = {
port: Number(process.env.PORT || 3001),
mongoUri: process.env.MONGODB_URI || "mongodb://localhost:27017/mnemo",
accessKey: process.env.MNEMO_ACCESS_KEY || "",
jwtSecret: process.env.JWT_SECRET || "development-secret"
};
|