add short time back to the build info
All checks were successful
Deploy SSR / deploy (push) Successful in 1m12s
All checks were successful
Deploy SSR / deploy (push) Successful in 1m12s
This commit is contained in:
@ -26,6 +26,7 @@ export function getBuildInformation() {
|
||||
: "dev"
|
||||
: "";
|
||||
const buildTime = process.env.NEXT_PUBLIC_BUILD_TIME;
|
||||
const buildTimeShort = process.env.NEXT_PUBLIC_BUILD_TIME_SHORT;
|
||||
|
||||
return { buildId, buildTime };
|
||||
return { buildId, buildTime, buildTimeShort };
|
||||
}
|
||||
|
@ -18,12 +18,13 @@ const items: NavbarItem[] = [
|
||||
];
|
||||
|
||||
export default function Footer() {
|
||||
const { buildId, buildTime } = getBuildInformation();
|
||||
const { buildId, buildTime, buildTimeShort } = getBuildInformation();
|
||||
|
||||
return (
|
||||
<div className="flex items-center w-full flex-col gap-1 mt-6">
|
||||
<p className="text-input text-sm">
|
||||
Build: {buildId} <span className="hidden lg:block">({buildTime})</span>
|
||||
<span className="none lg:hidden">({buildTimeShort})</span>
|
||||
</p>
|
||||
<div className="h-14 w-full flex flex-wrap items-center justify-center bg-secondary/95 divide-x divide-input">
|
||||
{items.map((item, index) => {
|
||||
|
Reference in New Issue
Block a user