Made FAVICON_URL a runtime variable. Closes #3412

This commit is contained in:
Mike Cao committed 2025-07-24 21:54:10 -07:00
1 parent 6e6c1df858
commit b6862de2be
2 files changed
+1 -3

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ export function Favicon({ domain, ...props }) {
return null;
}
const url = config?.faviconURL || process.env.faviconURL || FAVICON_URL;
const url = config?.faviconURL || FAVICON_URL;
const hostName = domain ? getHostName(domain) : null;
const domainName = GROUPED_DOMAINS[hostName]?.domain || hostName;
const src = hostName ? url.replace(/\{\{\s*domain\s*}}/, domainName) : null;