Fix web version injection

This commit is contained in:
2026-04-23 15:01:46 -05:00
parent df123e2cf4
commit 5f27b1562e
2 changed files with 5 additions and 2 deletions
+4
View File
@@ -1,9 +1,13 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import pkg from './package.json'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
define: {
__APP_VERSION__: JSON.stringify(pkg.version),
},
server: {
host: '0.0.0.0',
port: 5173,