WIP! A BB-style forum, on the ATmosphere!
We're still working... we'll be back soon when we have something to show off!
node
typescript
hono
htmx
atproto
1import type { CliConfig } from "./config.js";
2
3export interface PreflightResult {
4 ok: boolean;
5 errors: string[];
6}
7
8/**
9 * Check that all required environment variables are present.
10 */
11export function checkEnvironment(config: CliConfig): PreflightResult {
12 if (config.missing.length === 0) {
13 return { ok: true, errors: [] };
14 }
15 return { ok: false, errors: config.missing };
16}