From 7df8917fa3ededaa5fc434e720a26a1de0051992 Mon Sep 17 00:00:00 2001 From: Frankie Roberto Date: Tue, 25 Aug 2026 11:41:18 +0100 Subject: [PATCH] Add nhsapp-frontend version number This is helpful for debugging and seeing which versions of the key dependencies are currently being used --- app/locals.js | 5 +++++ app/views/index.html | 3 +++ 2 files changed, 8 insertions(+) diff --git a/app/locals.js b/app/locals.js index ffd0c9e..873beda 100644 --- a/app/locals.js +++ b/app/locals.js @@ -1,5 +1,10 @@ +const nhsappFrontendPkg = require('nhsapp-frontend/package.json') + module.exports = function(req, res, next) { + // Add the version of the NHS app frontend being used + res.locals.nhsappFrontendVersion = `v${nhsappFrontendPkg.version}` + // You can set any additional local variables here. // These will be made available to any views // diff --git a/app/views/index.html b/app/views/index.html index 6569d44..1ead121 100755 --- a/app/views/index.html +++ b/app/views/index.html @@ -56,6 +56,9 @@

+
+ +

Built on NHS prototype kit {{ prototypeKitVersion }} and NHS.UK frontend {{ nhsukFrontendVersion }} with NHS app frontend {{ nhsappFrontendVersion }}.

{% endblock %}