To solve this question: “My local environment always redirect me to http://localhost:8080/SSO/ when i clicked on view app.”
Set the Application URL in Projects settings → tab Configuration → click your configuration → tab Server to “http://localhost:8080/index-main.html”
If mendix version is 9.24 version and you want for local env to login with login page (already which is sso) then
go to theme->web-> change login-with-mendixsso-button.html file to login and login.html file to login-with-mendixsso-button.html
And inside login-with-mendixsso-button.html make <meta http-equiv="refresh" content="0;URL=/login.html" />.
It will work (remember login.html page should contain login html code).