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:
2 files changed
+59
-5
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user