Next-auth production issue for okta 404error

I am tring to use next-auth with oidc and pkce configuration here is my providers setting

Providers.Okta( {
      clientId: 'myid',
      domain: '',
      protection: 'pkce',
    } )

this is redirect url st up in my orgs octa panel

with local development i am able to see “login with octa” where browser url reads


I have also added NEXTAUTH_URL as env and set it to
howerver in production i am getting

{ "statusCode": 404, "message": "Resource not found" }

.How can I resolve this?
with bowser url being