MNEMO / server /src /config /env.js
SyntaxAdi
style: fix image rendering and refine AnswerRenderer logic
bcf42ee
Raw
History Blame Contribute Delete
539 Bytes
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"
};