mirror of
https://github.com/BetterCorp/BetterFrame.git
synced 2026-05-27 21:46:34 +00:00
Resolved coolify compose conflict — took remote bind mount pattern. All paths now use /home/bsb (BSB container workdir, not /app). Both compose files use bind mount for sec-config.yaml. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
14 lines
321 B
TypeScript
14 lines
321 B
TypeScript
import { readFileSync } from "node:fs";
|
|
|
|
let cached: string | null = null;
|
|
|
|
export function serverVersion(): string {
|
|
if (cached) return cached;
|
|
try {
|
|
const v = readFileSync("/home/bsb/.bf-version", "utf8").trim();
|
|
cached = v && v !== "dev" ? v : "dev";
|
|
} catch {
|
|
cached = "dev";
|
|
}
|
|
return cached;
|
|
}
|