We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f47f39 commit 1c0c3cfCopy full SHA for 1c0c3cf
1 file changed
apps/dashboard/src/layouts/Layout.astro
@@ -1,6 +1,8 @@
1
---
2
import "../styles/global.scss"
3
import "../styles/fonts.scss"
4
+
5
+import { CF_PAGES_COMMIT_SHA } from "astro:env/client"
6
7
8
<!doctype html>
@@ -15,13 +17,7 @@ import "../styles/fonts.scss"
15
17
<body>
16
18
<nav>
19
<span>@smc/dashboard</span>
- <code
- >{
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
- >
+ <code>{CF_PAGES_COMMIT_SHA}</code>
25
<ul>
26
<li>
27
<a href="/">home</a>
0 commit comments