Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

472 B
Raw Blame
import { readEnv } from './env';

/**
 * The running TREK version: the image's VERSION file or APP_VERSION (both behind
 * `readEnv().app.appVersion`), else server/package.json. The websocket welcome
 * frame and the plugin host-compatibility checks both announce it, so it lives
 * here rather than inside either domain.
 */
export function runningVersion(): string {
  return readEnv().app.appVersion || (require('../../package.json') as { version: string }).version;
}