fix: add deployment build stamp
This commit is contained in:
parent
4dac5c17cb
commit
0e466435d2
5
components/build-stamp.tsx
Normal file
5
components/build-stamp.tsx
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import { buildCommit } from "@/lib/build-info";
|
||||||
|
|
||||||
|
export function BuildStamp() {
|
||||||
|
return <span title={`构建提交:${buildCommit}`}>build {buildCommit.slice(0, 7)}</span>;
|
||||||
|
}
|
||||||
@ -1,5 +1,6 @@
|
|||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { BrandMark } from "@/components/brand-mark";
|
import { BrandMark } from "@/components/brand-mark";
|
||||||
|
import { BuildStamp } from "@/components/build-stamp";
|
||||||
|
|
||||||
export function SiteFooter() {
|
export function SiteFooter() {
|
||||||
return (
|
return (
|
||||||
@ -25,7 +26,7 @@ export function SiteFooter() {
|
|||||||
</div>
|
</div>
|
||||||
<div className="container-shell flex flex-col gap-3 border-t border-line py-5 text-xs text-subtle sm:flex-row sm:items-center sm:justify-between">
|
<div className="container-shell flex flex-col gap-3 border-t border-line py-5 text-xs text-subtle sm:flex-row sm:items-center sm:justify-between">
|
||||||
<span>© 2026 Shenzhen Kaotings Technology Co., Ltd.</span>
|
<span>© 2026 Shenzhen Kaotings Technology Co., Ltd.</span>
|
||||||
<span>Phase 1 development preview</span>
|
<span><BuildStamp /> · Phase 1 development preview</span>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
);
|
);
|
||||||
|
|||||||
1
lib/build-info.ts
Normal file
1
lib/build-info.ts
Normal file
@ -0,0 +1 @@
|
|||||||
|
export const buildCommit = process.env.NEXT_PUBLIC_BUILD_COMMIT ?? "local";
|
||||||
Loading…
Reference in New Issue
Block a user