diff options
| author | Fuwn <[email protected]> | 2024-01-03 16:31:54 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-01-03 16:33:20 -0800 |
| commit | 52b1c645afd5b7b0f200111a2a76302da77b967a (patch) | |
| tree | 93d13f91eda01fd06ecc8d0994fd5e2d828eacf6 | |
| parent | fix(feeds): seperate threads and activities (diff) | |
| download | due.moe-52b1c645afd5b7b0f200111a2a76302da77b967a.tar.xz due.moe-52b1c645afd5b7b0f200111a2a76302da77b967a.zip | |
fix(settings): vercel commit sha
| -rw-r--r-- | src/routes/settings/+page.server.ts | 5 | ||||
| -rw-r--r-- | src/routes/settings/+page.svelte | 2 |
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> |