Skip to content

Commit

Permalink
fix: let us use a configured hostname instead of the Render name to h…
Browse files Browse the repository at this point in the history
…opefully fix CORS issues with LiveView websockets/longpolling. (#110)
  • Loading branch information
zorn authored Dec 30, 2024
1 parent 9da4eb6 commit b6b099d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ if config_env() == :prod do
You can generate one by calling: mix phx.gen.secret
"""

host = System.get_env("RENDER_EXTERNAL_HOSTNAME") || "example.com"
host = System.get_env("PHX_HOSTNAME") || "example.com"
port = String.to_integer(System.get_env("PORT") || "4000")

config :flick, :dns_cluster_query, System.get_env("DNS_CLUSTER_QUERY")
Expand Down

0 comments on commit b6b099d

Please sign in to comment.