Compare commits

2 Commits

Author SHA1 Message Date
971c200b53 skip cdn if env var not set 2024-06-11 01:10:01 +02:00
d4f7ca4571 add plausible tracking 2024-06-11 00:53:49 +02:00
2 changed files with 2 additions and 1 deletions

View File

@ -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,

View File

@ -42,6 +42,7 @@
src={static_url(@conn, ~p"/assets/app.js")}
>
</script>
<script defer data-domain="rdiedri.ch" src="https://plausible.io/js/script.js"></script>
</head>
<body class="bg-white antialiased">
<%= @inner_content %>