hako/webapp/vite.config.ts
Felipe M. 5d593c0eae
All checks were successful
CI / goreleaser-lint (push) Successful in 8s
CI / format (push) Successful in 1m38s
CI / lint (push) Successful in 4m3s
CI / build (push) Successful in 5m43s
CI / test (push) Successful in 7m59s
Release / release (push) Successful in 5m43s
CI / e2e (push) Successful in 25m33s
feat: show the deployed version at the bottom of the sidebar
The version composable requests /system, the public endpoint that serves the build version. The Login page now shows the real version.
2026-10-02 16:16:02 +02:00

26 lines
536 B
TypeScript

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vite.dev/config/
export default defineConfig({
plugins: [vue()],
build: {
outDir: 'dist',
emptyOutDir: true,
},
server: {
port: 5173,
proxy: {
'/api': {
target: 'http://localhost:8080',
changeOrigin: true,
},
'/system': {
target: 'http://localhost:8080',
changeOrigin: true,
},
},
},
// Development mode settings
mode: process.env.NODE_ENV || 'development',
})