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
at atb-46-modlog-endpoint 15 lines 384 B view raw
1import type { LogLevel } from "@atbb/logger"; 2 3export interface WebConfig { 4 port: number; 5 appviewUrl: string; 6 logLevel: LogLevel; 7} 8 9export function loadConfig(): WebConfig { 10 return { 11 port: parseInt(process.env.WEB_PORT ?? "3001", 10), 12 appviewUrl: process.env.APPVIEW_URL ?? "http://localhost:3000", 13 logLevel: (process.env.LOG_LEVEL as LogLevel) ?? "info", 14 }; 15}