Add build-info script so the running build is visible
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": "1.0.0",
|
||||
"commit": null,
|
||||
"branch": null,
|
||||
"sourceHash": "f32721f929",
|
||||
"builtAt": "2026-11-26T09:09:23.099Z"
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
// lib/build-info.json is generated by scripts/write-build-info.mjs (prebuild).
|
||||
// Fallback keeps `next dev` and `tsc` working before the first build.
|
||||
import generated from './build-info.json';
|
||||
|
||||
export type BuildInfo = {
|
||||
version: string;
|
||||
commit: string | null;
|
||||
branch: string | null;
|
||||
sourceHash: string;
|
||||
builtAt: string;
|
||||
};
|
||||
|
||||
export const buildInfo: BuildInfo = generated as BuildInfo;
|
||||
Reference in New Issue
Block a user