Skip to content

Commit f4a16fc

Browse files
committed
Add source commit
1 parent eaa0ed1 commit f4a16fc

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# POSTGRES_PASSWORD=password
55
# DATABASE_URL=postgresql://postgres:password@db:5432/postgres
66
# PUBLIC_ENV=production # or staging
7+
# PUBLIC_COMMIT=$SOURCE_COMMIT
78

89
PUBLIC_ENV=dev
910

src/routes/Footer.svelte

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
<script lang="ts">
2+
import { env } from '$env/dynamic/public';
23
</script>
34

4-
<footer
5-
class="flex w-full flex-col items-center justify-center px-10 pt-5 pb-3 md:mt-8 lg:mt-8"
6-
>
5+
<footer class="flex w-full flex-col items-center justify-center px-10 pt-5 pb-3 md:mt-8 lg:mt-8">
76
<div class="">
87
<p class="text-center">
9-
A <a href="https://hackclub.com" class="underline">Hack Club</a> program. Made by teens, for teens!
8+
A <a href="https://hackclub.com" class="underline">Hack Club</a> program. Made by teens, for
9+
teens!
10+
{#if env.PUBLIC_COMMIT}
11+
· Build <a href={`https://github.com/hackclub/construct/commit/${env.PUBLIC_COMMIT}`} class="underline">{env.PUBLIC_COMMIT.slice(0, 7)}</a>
12+
{/if}
1013
</p>
1114
</div>
1215
</footer>

0 commit comments

Comments
 (0)