From 971c200b53161a1aab26073d3fc15aceff7e7f07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Diedrich?= Date: Tue, 11 Jun 2024 01:10:01 +0200 Subject: [PATCH] skip cdn if env var not set --- config/runtime.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/runtime.exs b/config/runtime.exs index 099716b..95a135f 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -49,7 +49,7 @@ if config_env() == :prod do """ host = System.get_env("PHX_HOST") || "example.com" - cdn = System.get_env("PHX_CDN") || "cdn.example.com" + cdn = System.get_env("PHX_CDN") || host port = String.to_integer(System.get_env("PORT") || "4000") config :homepage, HomepageWeb.Endpoint,