Files
frontend/vite.config.js
NanamiAdmin 3570054586 feat(settings): add settings page with server, watchdog and notification config
- Add new Settings view with form controls for server, watchdog and notification settings
- Implement API endpoints for getting and saving settings
- Add settings route and sidebar navigation item
- Update button styles to include text color variable
- Change default app target to local development address
2026-04-29 10:46:08 +08:00

23 lines
516 B
JavaScript

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
const APP_TARGET = '192.168.20.4:19090'
export default defineConfig({
define: {
__APP_TARGET__: JSON.stringify(APP_TARGET)
},
plugins: [vue()],
server: {
host: '0.0.0.0',
port: 3000,
proxy: {
'/api': {
target: `http://${APP_TARGET}`,
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')
}
}
}
})