Files
pangolin/server/lib/runMode.ts
T
2026-10-28 15:51:08 -04:00

15 lines
398 B
TypeScript

// Which entry point is running. Standalone entry points set this before
// anything loads the config, so the config schema can skip requirements
// that only apply to the full Pangolin server.
export type RunMode = "server" | "dns";
let runMode: RunMode = "server";
export function setRunMode(mode: RunMode) {
runMode = mode;
}
export function getRunMode(): RunMode {
return runMode;
}