mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-24 02:00:25 +08:00
25 lines
628 B
TypeScript
25 lines
628 B
TypeScript
import { defineApplicationConfig } from '@vben/vite-config';
|
|
|
|
export default defineApplicationConfig({
|
|
overrides: {
|
|
server: {
|
|
proxy: {
|
|
'/basic-api': {
|
|
target: 'http://localhost:3000',
|
|
changeOrigin: true,
|
|
ws: true,
|
|
rewrite: (path) => path.replace(new RegExp(`^/basic-api`), ''),
|
|
// only https
|
|
// secure: false
|
|
},
|
|
'/upload': {
|
|
target: 'http://localhost:3300/upload',
|
|
changeOrigin: true,
|
|
ws: true,
|
|
rewrite: (path) => path.replace(new RegExp(`^/upload`), ''),
|
|
},
|
|
},
|
|
},
|
|
},
|
|
});
|