Files
frontend/vite.config.js
NanamiAdmin 11245a5b7f feat(users): add user type modification functionality
- Add modifyType API endpoint in userApi
- Implement user type modification in Users.vue
2026-03-30 14:22:12 +08:00

23 lines
512 B
JavaScript

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
const APP_TARGET = 'localhost:8080'
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/, '')
}
}
}
})