Phoenix app picking up fly.dev url instead of custom domain

Hi I’m working on a project running in Phoenix framework and Fly. https://handsomegig.com (https://handsomegig.fly.dev). I’ve integrated pow_assent for social auth. When one tries to login via Facebook using this Handsomegig · Phoenix Framework the redirect url appears to be https://handsomegig.fly.dev.

Found the issue. PHX_HOST was incorrectly set. Following link helped: