seahaven-ap/packages/api/src/build-info.ts

10 lines
503 B
TypeScript
Raw Normal View History

// Build-time constant. The API image Dockerfile overwrites the compiled
// `build-info.js` with an inlined GIT_SHA after `tsc`. Keep the exact
// expression `process.env.GIT_SHA` here so local `tsx` still reads the env.
//
// Consumers must prefer BUILD_GIT_SHA over a runtime GIT_SHA env var. A
// deployed task can carry a stale env var from an earlier infra apply while
// its image has since been updated by deploy-api.yaml.
export const BUILD_GIT_SHA: string = process.env.GIT_SHA?.trim() || "";