11 lines
596 B
TypeScript
11 lines
596 B
TypeScript
|
|
// 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.
|
||
|
|
const env = (import.meta as unknown as { env: Record<string, string | undefined> }).env;
|
||
|
|
|
||
|
|
export const FRONTEND_VERSION = env.VITE_APP_VERSION || "dev";
|
||
|
|
export const FRONTEND_SHA = env.VITE_GIT_SHA || "unknown";
|
||
|
|
export const FRONTEND_BUILD_DATE = env.VITE_BUILD_DATE || "";
|
||
|
|
|
||
|
|
// Key for the "last version the user has seen release notes for" (drives the banner).
|
||
|
|
export const SEEN_VERSION_KEY = "siftlode.seenVersion";
|