mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-09-10 14:11:17 +00:00
19 lines
396 B
JavaScript
19 lines
396 B
JavaScript
const { BASE_URL } = process.env;
|
|
console.log('Using backend URL: ' + (BASE_URL || 'unknown'));
|
|
|
|
module.exports = {
|
|
'/alfresco': {
|
|
target: BASE_URL,
|
|
secure: false,
|
|
pathRewrite: {
|
|
'^/alfresco/alfresco': ''
|
|
},
|
|
changeOrigin: true,
|
|
onProxyReq: (request) => {
|
|
if (request['method'] !== 'GET') {
|
|
request.setHeader('origin', BASE_URL);
|
|
}
|
|
}
|
|
}
|
|
};
|