Build lightweight AI agent admin
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
import { defineConfig } from '@vben/vite-config';
|
||||
|
||||
import ElementPlus from 'unplugin-element-plus/vite';
|
||||
import { createLogger } from 'vite';
|
||||
|
||||
const viteLogger = createLogger();
|
||||
|
||||
export default defineConfig(async () => {
|
||||
return {
|
||||
application: {},
|
||||
vite: {
|
||||
customLogger: viteLogger,
|
||||
plugins: [
|
||||
ElementPlus({
|
||||
format: 'esm',
|
||||
}),
|
||||
],
|
||||
server: {
|
||||
proxy: {
|
||||
'/basic-api': {
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/basic-api/, ''),
|
||||
target: 'http://localhost:8000',
|
||||
ws: true,
|
||||
},
|
||||
'/ws': {
|
||||
changeOrigin: true,
|
||||
target: 'ws://localhost:8000',
|
||||
ws: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user