mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-11-27 18:22:53 +01:00
Implemented update checking
This commit is contained in:
1 parent
f19a662bd3
commit
ed2b72c749
8 files changed
+254
-6
No files matched your search
@@ -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: {
|
||||
|
||||
Reference in new issue
Block a user