Files
frontend/vite.config.js
NanamiAdmin 49d9f4f389 fix: update app target and improve notification handling
- Change APP_TARGET to new server address
- Add line break support in notification messages
- Include response details in webhook test notifications
- Add Content-Type header to webhook requests
2026-05-07 19:23:35 +08:00

23 lines
520 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}/api`,
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')
}
}
}
})