In loopback 3, client root config is defind in middilware.json file,
"files": {
"loopback#static": {
"params": "$!../client"
}
},
like in loopback 4, application.ts file has the path for home page of lb4
// Set up default home page
this.static('/', path.join(__dirname, '../public'));
now i'm working with LB4 server and Angular 8 application, here i need to redirect lb4 home page is angular application. how to configure this case? Help me to solve this..!
It is possible to replace this.static()
with this.redirect()
:
this.redirect('/', 'https://www.example.com/');