Inject app version (v1.0.0) at build time via Vite define config and display it below the title in muted text.
18 lines
336 B
TypeScript
18 lines
336 B
TypeScript
/// <reference types="vitest" />
|
|
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
define: {
|
|
__APP_VERSION__: JSON.stringify('1.0.0'),
|
|
},
|
|
server: {
|
|
allowedHosts: ['soos'],
|
|
},
|
|
test: {
|
|
globals: true,
|
|
},
|
|
})
|