Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
508 views
in Technique[技术] by (71.8m points)

@sap/approuter welcomeFile route is working on Cloud Foundry, but not working locally (503)

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...