Implemented update checking

This commit is contained in:
patben8 committed 2026-07-09 13:45:06 +02:00
1 parent f19a662bd3
commit ed2b72c749
8 files changed
+254 -6

No files matched your search

+8
View File
@@ -1,9 +1,17 @@
import { readFileSync } from 'node:fs'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// The app's own version, from the single source of truth (package.json), baked
// in at build time as __APP_VERSION__ (used by the startup update check).
const pkg = JSON.parse(readFileSync(new URL('./package.json', import.meta.url), 'utf8'))
// Proxy /api to the FastAPI backend so the frontend can use same-origin fetches.
export default defineConfig({
plugins: [react()],
define: {
__APP_VERSION__: JSON.stringify(pkg.version),
},
server: {
port: 5173,
proxy: {