Question about prod.exs

I deployed my app( using umbrella app ) to heroku.

But I got an issue with custom address in heroku. The problem is when I launched my site, it shows me correct custom domain address (like But after login it must show “” but it shows me “www.” -> Heroku app address.
So I wonder what cause this problem (from heroku setting? Namecheap? or in my app)

In my prod.exs

config :myapp, Myapp.Web.Endpoint,
  load_from_system_env: true,
  url: [scheme: "https", host: "", port: 443],
  force_ssl: [rewrite_on: [:x_forwarded_proto]],
  cache_static_manifest: "priv/static/cache_manifest.json",
  secret_key_base: Map.fetch!(System.get_env(), "SECRET_KEY_BASE")

Do I have to change host: "" to my custom domain? likehost: "" ??

Yes, the contents of :url is used to generate the sites base URL.

Ok So I did change it to actual domain name.

But strange thing is is working and other address like
but is not working (connection timed out)
I am using passwordless sign in method by the way.

Oh ok I solved this problem by adding root domains in heroku and dns provider.

1 Like

I’m just dropping in to say thank you for sharing the solution to your problem, once you figured it out. It might come in handy for someone else with a similar problem in the future.