mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
"start:dist" script to run production build
This commit is contained in:
parent
be68ec5e3f
commit
33e27d2e57
@ -8,7 +8,8 @@
|
||||
"build": "ng build",
|
||||
"test": "ng test",
|
||||
"lint": "ng lint",
|
||||
"e2e": "ng e2e"
|
||||
"e2e": "ng e2e",
|
||||
"start:dist": "wsrv"
|
||||
},
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
|
21
wsrv-config.js
Normal file
21
wsrv-config.js
Normal file
@ -0,0 +1,21 @@
|
||||
module.exports = {
|
||||
"host": "0.0.0.0",
|
||||
"port": 3000,
|
||||
"dir": "./dist",
|
||||
"spa": true,
|
||||
"proxy": {
|
||||
"/alfresco/{p*}": {
|
||||
"options": {
|
||||
"uri": "http://0.0.0.0:8080/alfresco/{p}"
|
||||
}
|
||||
}
|
||||
},
|
||||
onResHeaders(headers) {
|
||||
if (headers) {
|
||||
const authHeader = headers['www-authenticate'];
|
||||
if (authHeader) {
|
||||
headers['www-authenticate'] = `x${authHeader}`;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user