Skip to content
This repository was archived by the owner on Apr 4, 2026. It is now read-only.

Commit 1c0c3cf

Browse files
committed
fix(dash): display commit hash now pls
1 parent 4f47f39 commit 1c0c3cf

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

apps/dashboard/src/layouts/Layout.astro

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
import "../styles/global.scss"
33
import "../styles/fonts.scss"
4+
5+
import { CF_PAGES_COMMIT_SHA } from "astro:env/client"
46
---
57

68
<!doctype html>
@@ -15,13 +17,7 @@ import "../styles/fonts.scss"
1517
<body>
1618
<nav>
1719
<span>@smc/dashboard</span>
18-
<code
19-
>{
20-
import.meta.env.CF_PAGES_COMMIT_SHA
21-
? (import.meta.env.CF_PAGES_COMMIT_SHA as string).substring(0, 7)
22-
: "a1b2c3d"
23-
}</code
24-
>
20+
<code>{CF_PAGES_COMMIT_SHA}</code>
2521
<ul>
2622
<li>
2723
<a href="/">home</a>

0 commit comments

Comments
 (0)