mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
improved "start:dist" script (#2369)
This commit is contained in:
committed by
Maurizio Vitale
parent
70a38acbff
commit
c9641da932
26
demo-shell-ng2/wsrv-config.js
Normal file
26
demo-shell-ng2/wsrv-config.js
Normal file
@@ -0,0 +1,26 @@
|
||||
module.exports = {
|
||||
"host": "0.0.0.0",
|
||||
"port": 3000,
|
||||
"dir": "./dist",
|
||||
"spa": true,
|
||||
"proxy": {
|
||||
"/ecm/{p*}": {
|
||||
"options": {
|
||||
"uri": "http://0.0.0.0:8080/{p}"
|
||||
}
|
||||
},
|
||||
"/bpm/{p*}": {
|
||||
"options": {
|
||||
"uri": "http://0.0.0.0:9999/{p}"
|
||||
}
|
||||
}
|
||||
},
|
||||
onResHeaders(headers) {
|
||||
if (headers) {
|
||||
const authHeader = headers['www-authenticate'];
|
||||
if (authHeader) {
|
||||
headers['www-authenticate'] = `x${authHeader}`;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user