Files
pic/webui/vite.config.js
T
Constantin 2277b11563 init
2025-09-12 23:04:52 +03:00

27 lines
507 B
JavaScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
port: 5173,
proxy: {
'/api': {
target: 'http://localhost:3000',
changeOrigin: true,
secure: false,
},
'/health': {
target: 'http://localhost:3000',
changeOrigin: true,
secure: false,
}
}
},
build: {
outDir: 'dist',
sourcemap: true,
}
})