aboutsummaryrefslogtreecommitdiff
path: root/src/routes
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes')
-rw-r--r--src/routes/settings/+page.server.ts5
-rw-r--r--src/routes/settings/+page.svelte2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/routes/settings/+page.server.ts b/src/routes/settings/+page.server.ts
new file mode 100644
index 00000000..920c86f2
--- /dev/null
+++ b/src/routes/settings/+page.server.ts
@@ -0,0 +1,5 @@
+export const load = () => {
+ return {
+ commit: process.env.VERCEL_GIT_COMMIT_SHA
+ };
+};
diff --git a/src/routes/settings/+page.svelte b/src/routes/settings/+page.svelte
index 196e3839..3d8aee18 100644
--- a/src/routes/settings/+page.svelte
+++ b/src/routes/settings/+page.svelte
@@ -53,7 +53,7 @@
<Category title="Calculation"><Calculation /></Category>
<Category title="Cache"><Cache /></Category>
<Category id="debug">
- <summary>Debug <small style="opacity: 50%;">{env.PUBLIC_GIT_SHORT_SHA}</small></summary>
+ <summary>Debug <small style="opacity: 50%;">{data.commit.slice(0, 7)}</small></summary>
<Debug />
</Category>