Files
BrainBox/src/config.ts
2026-05-31 23:43:12 +09:00

16 lines
353 B
TypeScript

import "dotenv/config";
export interface Config {
openrouterApiKey: string;
dbPath: string;
}
const openrouterApiKey = process.env["OPENROUTER_API_KEY"];
if (!openrouterApiKey) throw new Error("OPENROUTER_API_KEY is missing");
const dbPath = process.env["DB_PATH"] ?? "sqlite.db";
export const config: Config = {
openrouterApiKey,
dbPath,
};