0.9.0-1 Version Check

This commit is contained in:
2026-03-14 08:07:49 +00:00
parent 466e7a7a3d
commit ba91f83722
11 changed files with 205 additions and 12 deletions

View File

@@ -1,6 +1,8 @@
import { readFileSync } from 'node:fs';
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
const appPackage = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8'));
const publicOrigin = (process.env.VITE_PUBLIC_ORIGIN || '').trim();
const parsedAllowedHosts = (process.env.VITE_ALLOWED_HOSTS || '')
.split(',')
@@ -24,6 +26,9 @@ if (publicOrigin) {
export default defineConfig({
plugins: [react()],
define: {
__APP_VERSION__: JSON.stringify(appPackage.version)
},
server: {
host: '0.0.0.0',
port: 5173,