mirror of
https://github.com/fosrl/pangolin.git
synced 2026-10-29 23:19:08 +01:00
15 lines
398 B
TypeScript
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;
|
|
}
|