mirror of
https://dev.azure.com/tstanciu94/ReverseProxy/_git/ReverseProxy_Frontend
synced 2025-10-03 16:49:04 +03:00
- feat: Add session management components and improve system overview - feat: Update dependencies and replace react-flags with react-country-flag - Update dependencies in package.json: reintroduce react-dom and upgrade redux to version 5.0.1 - refactor: update chatbot implementation and dependencies - refactor: migrate to Redux Toolkit and update dependencies - feat: enhance ReactCountryFlag component with SVG support - refactor: remove Bootstrap dependency and update Node engine requirement; add LabelValue component for better UI consistency - refactor: enhance LabelValue component usage in ServerSummary for improved readability and tooltip support - refactor: replace inline text with LabelValue component in ActiveSessionSummary and SessionSummary for improved consistency and readability - refactor: update components to use LabelValue for improved consistency and readability - refactor: optimize LabelValue component for improved readability and structure - refactor: improve code readability in SessionForwardsComponent by standardizing arrow function syntax and adjusting styling properties
41 lines
1.1 KiB
TypeScript
41 lines
1.1 KiB
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import { resolve } from 'path'
|
|
import { readFileSync } from 'fs'
|
|
import viteTsconfigPaths from 'vite-tsconfig-paths'
|
|
import checker from 'vite-plugin-checker'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig(() => {
|
|
// Read package.json for version info
|
|
const packageJson = JSON.parse(readFileSync('./package.json', 'utf-8'))
|
|
|
|
return {
|
|
base: process.env.VITE_BASE_PATH ? `/${process.env.VITE_BASE_PATH}/` : '/',
|
|
plugins: [
|
|
react(),
|
|
viteTsconfigPaths(), // Enables TypeScript path mapping from tsconfig.json
|
|
checker({
|
|
typescript: true
|
|
})
|
|
],
|
|
server: {
|
|
port: 3000,
|
|
open: true,
|
|
},
|
|
build: {
|
|
outDir: 'build',
|
|
sourcemap: true,
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': resolve(__dirname, 'src'),
|
|
},
|
|
},
|
|
define: {
|
|
// Expose app version and build date as Vite environment variables
|
|
'import.meta.env.VITE_APP_VERSION': JSON.stringify(packageJson.version),
|
|
'import.meta.env.VITE_APP_DATE': JSON.stringify(new Date().toISOString()),
|
|
},
|
|
}
|
|
}) |