feat: validate required env vars at startup #144
No reviewers
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/compliancebot!144
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/startup-env-validation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
enforceEnv()startup check inpackages/api/src/env.tsthat validatesOPENAI_API_KEY,DATABASE_URL, andSTRIPE_SECRET_KEYbefore any server initializationprocess.exit(1)if any are absentCloses #114, replaces #54.
Test plan
bun test packages/api/tests/unit/env.test.ts— 3/3 pass🤖 Generated with Claude Code