diff --git a/package.json b/package.json
index a234e34..4c4a36e 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "g1flux",
"private": true,
- "version": "0.0.0",
+ "version": "1.0.0",
"type": "module",
"scripts": {
"dev": "vite",
diff --git a/src/components/StatsPanel.tsx b/src/components/StatsPanel.tsx
index 1434961..970c850 100644
--- a/src/components/StatsPanel.tsx
+++ b/src/components/StatsPanel.tsx
@@ -64,7 +64,10 @@ export function StatsPanel({ stats, loading, periodDays, source, currentUD, anim
Ğ
-
Ğ1Flux
+
+ Ğ1Flux
+ v{__APP_VERSION__}
+
Monnaie libre · Flux géo
diff --git a/src/types/globals.d.ts b/src/types/globals.d.ts
new file mode 100644
index 0000000..41fad5b
--- /dev/null
+++ b/src/types/globals.d.ts
@@ -0,0 +1 @@
+declare const __APP_VERSION__: string;
diff --git a/vite.config.ts b/vite.config.ts
index 3737b6d..2274a1c 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -1,8 +1,14 @@
import { defineConfig } from 'vitest/config'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
+import { readFileSync } from 'node:fs'
+
+const { version } = JSON.parse(readFileSync('./package.json', 'utf-8')) as { version: string };
export default defineConfig({
+ define: {
+ __APP_VERSION__: JSON.stringify(version),
+ },
plugins: [
react(),
tailwindcss(),