// Build info baked into the SPA at build time (Vite inlines VITE_*-prefixed env). // Injected via Docker build-args (see Dockerfile); falls back to "dev" for un-stamped builds. import { LS } from "./storage"; import type { UsePrefOptions } from "./usePref"; export const FRONTEND_VERSION = import.meta.env.VITE_APP_VERSION || "dev"; export const FRONTEND_SHA = import.meta.env.VITE_GIT_SHA || "unknown"; export const FRONTEND_BUILD_DATE = import.meta.env.VITE_BUILD_DATE || ""; // The last version the account has seen the release notes banner for — an account preference // (usePref), so a banner dismissed on one device stays dismissed on the others. export const SEEN_VERSION_PREF = "seenVersion"; export const SEEN_VERSION_OPTIONS: UsePrefOptions = { localKey: LS.seenVersion, parse: (raw) => (raw == null ? null : String(raw)), };