mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Improve build stages (#3744)
* travis precache * rb change * remove ut * add cache warm up * Prepare cache fix * add test * use env variabble to tag * use env to label stages * move lint step at start * use dist for e2e * upload dist in alfresco * modify permissions * travis script node * remove polyfills * revert some changes * fix demo shell run test * solve download * revert debatable gallery change
This commit is contained in:
33
e2e/lite-server-proxy.js
Normal file
33
e2e/lite-server-proxy.js
Normal file
@@ -0,0 +1,33 @@
|
||||
var PROXY_HOST_ADF = process.env.PROXY_HOST_ADF;
|
||||
var HOST = process.env.URL_HOST_ADF;
|
||||
|
||||
let proxy = require('http-proxy-middleware');
|
||||
|
||||
let targetProxy = 'http://' + (PROXY_HOST_ADF || HOST);
|
||||
let fallback = require('connect-history-api-fallback');
|
||||
|
||||
console.log('targetProxy');
|
||||
|
||||
module.exports = {
|
||||
'port': 4200,
|
||||
open: false,
|
||||
server: {
|
||||
middleware: {
|
||||
1: proxy('/alfresco', {
|
||||
target: targetProxy,
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
"^/alfresco/alfresco": ""
|
||||
}
|
||||
}),
|
||||
2: proxy('/activiti-app', {
|
||||
target: targetProxy,
|
||||
changeOrigin: true,
|
||||
"pathRewrite": {
|
||||
"^/activiti-app/activiti-app": ""
|
||||
}
|
||||
}),
|
||||
3: fallback({index: '/index.html', verbose: true})
|
||||
}
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user