Redirect after login from API gateway

I am using express-OIDC-connect SDK. My app is build on nodeJs(Express). when I am running locally it worked fine but when I am running in cloud using API lambda gateways I am getting redirecte

for example my base url is https://SOMERANDOM.us-east-1.amazonaws.com/dev/ when I am clicking on login button it’s redirecting me to https://SOMERANDOM.us-east-1.amazonaws.com/login instead of dev/login also after successful attempt I am redirected to /dashboard instead of /dev/dashboard