fix(dev): update webpack proxy config syntax for Orthanc dev mode (#5531)

* fix(dev): update webpack proxy config syntax for Orthanc dev mode

* Add datasources and rename dicomweb to orthancProxy datasource

---------

Co-authored-by: Nilesh Gautam <nilesh.gautam@radpretation.ai>
Co-authored-by: Bill Wallace <wayfarer3130@gmail.com>
This commit is contained in:
authored and GitHub committed 2025-11-10 16:08:50 -05:00
1 parent bb45cb24b5
commit 58aa0d1eaa
2 files changed
+59 -5

No files matched your search

+4 -3
View File
@@ -183,15 +183,16 @@ module.exports = (env, argv) => {
if (hasProxy) {
mergedConfig.devServer.proxy = mergedConfig.devServer.proxy || {};
mergedConfig.devServer.proxy = {
[PROXY_TARGET]: {
mergedConfig.devServer.proxy = [
{
context: [PROXY_PATH_REWRITE_FROM || '/dicomweb'],
target: PROXY_DOMAIN,
changeOrigin: true,
pathRewrite: {
[`^${PROXY_PATH_REWRITE_FROM}`]: PROXY_PATH_REWRITE_TO,
},
},
};
];
}
if (isProdBuild) {