BetterFrame/server/src/shared/version.ts
Mitchell R 238aa4f9af
fix: resolve merge conflict + align BSB workdir /home/bsb
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>
2026-05-23 23:58:36 +02:00

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;
}