Go Live Checklist + Version Endpoint

- Go Live Checklist for LandveX Internal Pilot deployment
- Version endpoint: /version returns environment, version, commit, build
- Ready for Internal Pilot deployment

Next: Deploy with Docker Compose
This commit is contained in:
Bernt
2026-07-02 17:10:09 +00:00
parent 740da921fe
commit ddfe99f9f2
3 changed files with 118 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
/**
* Version endpoint
*
* Returns current version, commit SHA, and build info.
* Used by Readiness Dashboard and debugging.
*/
import { Router } from 'express';
const router = Router();
const VERSION = {
environment: process.env.NODE_ENV || 'development',
version: process.env.npm_package_version || '0.1.0',
commit: process.env.GIT_COMMIT || 'unknown',
build: new Date().toISOString(),
};
router.get('/', (_req, res) => {
res.json(VERSION);
});
export default router;