feat: display app version in footer

Inject version from package.json at build time via Vite's define and
show it in the layout footer.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Frederic Cabassut
2026-03-06 00:05:25 +01:00
co-authored by Claude Opus 4.6
parent 10371f6c94
commit 08d6dbc13d
4 changed files with 10 additions and 2 deletions
+2
View File
@@ -1,5 +1,7 @@
// See https://svelte.dev/docs/kit/types#app.d.ts
// for information about these interfaces
declare const __APP_VERSION__: string;
declare global {
namespace App {
// interface Error {}
+1 -1
View File
@@ -25,7 +25,7 @@
</main>
<footer class="pb-4 pt-8 text-center text-xs text-gray-400 lg:ml-64">
Crumbs by Bretzel &mdash; made with 🥨 in Strasbourg
Crumbs by Bretzel v{__APP_VERSION__} &mdash; made with 🥨 in Strasbourg
</footer>
<Toast />