From 2681af8369a39d229db16e5467e60718380b68fe Mon Sep 17 00:00:00 2001 From: Mike Zornek Date: Mon, 30 Dec 2024 15:57:14 -0500 Subject: [PATCH] Let us use a configured hostname instead of the Render name to hopefully fix CORS issues with LiveView websockets/longpolling. --- config/runtime.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/runtime.exs b/config/runtime.exs index ee17f01..deb386d 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -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")