dataease-dm/core/core-frontend/config/dev.ts
2023-12-20 09:18:14 +08:00

19 lines
401 B
Java

export default {
server: {
proxy: {
'/api/f': {
target: 'http://localhost:8100',
changeOrigin: true,
rewrite: path => path.replace(/^\/api\/f/, '')
},
// 使用 proxy 实例
'/api': {
target: 'http://localhost:8100',
changeOrigin: true,
rewrite: path => path.replace(/^\/api/, 'de2api')
}
},
port: 8080
}
}