mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Fix e2e test (#4981)
* fix core viewer * increase rendition retry * sso refresh before test * general fix test * try use last proxy * avoid use proxy * remove proxy * fix setting tests * fix share and sso test * fix lint exclude * fix sso * fix some process services cloud e2e * fix sso download * exclude sso test * fix cloud * add logout content service test * add logout core * add logout search * redefine global before all * separate protracotr method * try * try multiple attempt before all * add prefix group and users * add prefix group and users * add prefix group and users * rexecute sso test * fix process service visibility e2e * split SSO login test * fix SSO download * fix SSO download * fix some cloud issues * fix some cloud issues * fix some cloud issues * share file fix cs * fix cloud test
This commit is contained in:
@@ -1,9 +1,3 @@
|
||||
var PROXY_HOST_ADF = process.env.PROXY_HOST_ADF;
|
||||
var HOST = process.env.URL_HOST_ADF;
|
||||
|
||||
let proxy = require('http-proxy-middleware');
|
||||
|
||||
let targetProxy = (PROXY_HOST_ADF || HOST);
|
||||
let fallback = require('connect-history-api-fallback');
|
||||
|
||||
module.exports = {
|
||||
@@ -12,21 +6,7 @@ module.exports = {
|
||||
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})
|
||||
1: fallback({index: '/index.html', verbose: true})
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user