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 when I am clicking on login button it’s redirecting me to instead of dev/login also after successful attempt I am redirected to /dashboard instead of /dev/dashboard