added version check

This commit is contained in:
2026-01-14 12:55:38 +01:00
parent e542cd80d8
commit 376243f64c
8 changed files with 107 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import packageJson from './package.json' // Import package.json
// @ts-expect-error process is a nodejs global
const host = process.env.TAURI_DEV_HOST;
@@ -31,4 +32,9 @@ export default defineConfig(async () => ({
ignored: ["**/src-tauri/**"],
},
},
define: {
'__APP_VERSION__': JSON.stringify(packageJson.version),
'__BACKEND_VERSION__': JSON.stringify(packageJson.backendVersion)
}
}));