You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
628 B
24 lines
628 B
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`), ''),
|
|
},
|
|
},
|
|
},
|
|
},
|
|
});
|
|
|