monorepo-microservice-rbac/apps/aorta/scripts/dev.proxy.ts

36 lines
839 B
TypeScript
Raw Normal View History

2023-08-27 14:37:59 +08:00
import WebpackDevServer from "webpack-dev-server";
type TProxyMap =
| WebpackDevServer.ProxyConfigMap
| WebpackDevServer.ProxyConfigArrayItem
| WebpackDevServer.ProxyConfigArray
| undefined;
export const proxyMap: TProxyMap = {
"/dicom-web": {
target: "http://localhost:8042/dicom-web/",
changeOrigin: true,
pathRewrite: { "^/dicom-web": "" },
},
2023-12-19 16:56:25 +08:00
'/wado':{
target: "http://localhost:8042/wado",
changeOrigin: true,
pathRewrite: { "^/wado": "" },
},
2023-08-27 14:37:59 +08:00
"/cert": {
target: "http://localhost:12144/",
changeOrigin: true,
pathRewrite: { "^/cert": "/cert" },
},
"/api": {
target: "http://localhost:9008/",
changeOrigin: true,
pathRewrite: { "^/api": "" },
},
2023-09-22 17:04:02 +08:00
"/py": {
target: "http://localhost:5000/",
changeOrigin: true,
pathRewrite: { "^/py": "" },
},
2023-08-27 14:37:59 +08:00
};