Skip to content

Commit

Permalink
AREG-60 - Add media proxy configuration to webpack for development
Browse files Browse the repository at this point in the history
  • Loading branch information
D-GopalKrishna committed Jan 3, 2025
1 parent 9229f6a commit e2fbf32
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion applications/portal/frontend/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,14 @@ module.exports = env => {
cookieDomainRewrite: { "localhost": "areg" },
withCredentials: true,
pathRewrite: { '^/proxy/accounts-api': '' }
}
},
'/media/': {
target: replaceHost(proxyTarget, 'portal'),
secure: false,
changeOrigin: true,
cookieDomainRewrite: { "localhost": "areg" },
withCredentials: true,
},
},
};

Expand Down

0 comments on commit e2fbf32

Please sign in to comment.