feat: initial lunarfront-manager app

This commit is contained in:
Ryan Moon
2026-04-03 06:23:56 -05:00
commit 8287fbf5b8
16 changed files with 793 additions and 0 deletions

14
src/lib/config.ts Normal file
View File

@@ -0,0 +1,14 @@
export const config = {
port: Number(process.env.PORT ?? 3000),
doToken: process.env.DO_API_TOKEN!,
doDbClusterId: process.env.DO_DB_CLUSTER_ID!,
gitSshKey: process.env.GIT_SSH_KEY!,
gitRepoUrl: process.env.GIT_REPO_URL ?? "ssh://git@git-ssh.lunarfront.tech/ryan/lunarfront-charts.git",
dbUrl: process.env.DATABASE_URL!,
};
for (const [key, val] of Object.entries(config)) {
if (val === undefined || val === "") {
throw new Error(`Missing required env var for config key: ${key}`);
}
}