Files
frontend/vite.config.js
NanamiAdmin ea49736779 refactor: replace instanceID - Details with instanceName - Details
- Change API endpoint from POST to GET for instance status
- Update proxy target URL in vite config
- Add instance name display and remove initSystem from detail view
- Improve instance data handling in InstanceDetail component
2026-03-25 10:44:18 +08:00

18 lines
407 B
JavaScript

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
export default defineConfig({
plugins: [vue()],
server: {
host: '0.0.0.0',
port: 3000,
proxy: {
'/api': {
target: 'http://192.168.1.4:38080',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')
}
}
}
})