Files
matagent/frontend/vite.config.ts
“yangqiao” 8f8d45eb4c chartedit
2024-12-31 11:00:37 +08:00

18 lines
371 B
TypeScript

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