feat: use Phoenix config for theme injection (cleaner approach)

This commit is contained in:
2025-11-09 08:48:22 +01:00
parent d37ff0de47
commit f0540c52bc
4 changed files with 17 additions and 78 deletions

View File

@@ -15,3 +15,15 @@ config :asciinema, Asciinema.Emails.Mailer,
verify: :verify_none,
versions: [:"tlsv1.2", :"tlsv1.3"]
]
# Serve custom theme files as static assets
config :asciinema, AsciinemaWeb.Endpoint,
static_url: [path: "/theme"],
check_origin: false
# Try to inject custom head HTML (if supported by asciinema)
config :asciinema, AsciinemaWeb.Endpoint,
extra_head_html: """
<link rel="stylesheet" href="/theme/custom.css">
<link rel="icon" type="image/svg+xml" href="/theme/favicon.svg">
"""