When this config is deployed the static resource found at ./resources/index.html
is served, however when this same approuter is ran locally (npm start
) on localhost:5000, it does redirect to the path of the welcomeFile but the page is showing a "503 Service Temporarily Unavailable".
{
"welcomeFile": "/router/index.html",
"authenticationMethod": "route",
"logout": {
"logoutEndpoint": "/do/logout"
},
"routes": [
{
"source": "^/router/(.*)$",
"target": "$1",
"localDir": "resources"
},
{
"source": "^/api/(.*)$",
"target": "$1",
"destination": "srv-api",
"authenticationType": "xsuaa"
},
{
"source": "^(.*)",
"target": "$1",
"service": "html5-apps-repo-rt",
"authenticationType": "xsuaa"
}
]
}
question from:
https://stackoverflow.com/questions/65935006/sap-approuter-welcomefile-route-is-working-on-cloud-foundry-but-not-working-lo 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…