feat: add config

This commit is contained in:
2026-05-31 23:02:16 +09:00
parent 19c2a3591e
commit d6efb4baea
2 changed files with 13 additions and 0 deletions

1
.env.example Normal file
View File

@@ -0,0 +1 @@
OPENROUTER_API_KEY=

12
src/config.ts Normal file
View File

@@ -0,0 +1,12 @@
import "dotenv/config";
export interface Config {
openrouterApiKey: string;
}
const openrouterApiKey = process.env["OPENROUTER_API_KEY"];
if (!openrouterApiKey) throw new Error("OPENROUTER_API_KEY is missing");
export const config: Config = {
openrouterApiKey: openrouterApiKey,
};