How to add some app version info in a next.js app (available in client) ?
How can I (should I) add some version info as "meta data" to my Next.js app, so that it is available from the browser ?
My goal is that it is not regularly visible to the user, but can be found somewhere, e.g. to confirm which version has been deployed.
I thought of these options:
- Add a
<meta version="1.2.3">
,
but there seems to be no "valid" meta tag for a version number. - Add a comment like
<!-- v1.2.3 -->
,
but there seems to be no clean way to add comments in Next.js. - Add some invisible
<div>
somewhere,
but that seems very "hacky" / "dirty" to me.