Heroku Deployment Error: Your Okta URL must start with https. Current value: 'https://dev-05782542.okta.com/oauth2/default'

Hi Team,

We are deploying our ExpressJS API on Heroku platform. Our application has separate .env file to set application related environment variables. While deployment we are facing following issue-

Error: Your Okta URL must start with https. Current value: 
'https://dev-05782542.okta.com/oauth2/default'.

We also tried with hard- coded values(without using .env file) but still it didn’t work.

Any help would be appreciated.

Thank you,
Shardul Arun Pathak

Does your app work properly when hosted locally?