Files
Matt Godbolt f460ffc3ff Drive env branding from extraBodyClass alone
The favicon selector and logo overlay used to be hard-coded switches
over the env name array (favicon) and a chained if/else in logo.pug.
Adding a new environment meant editing both, the favicon allowlist,
and the tests.

Convert both to a convention driven by extraBodyClass:
favicon-<class>.ico and site-logo-<class>.svg. logo.pug becomes one
unconditional overlay tag. getFaviconFilename takes the class string
directly.

Add validateBrandingAssets, called once during setupWebServer, which
throws if the configured assets are missing. Typos in extraBodyClass
now fail at startup with a clear error rather than serving a broken
favicon.

isFaviconRequest becomes a regex matching favicon-*.ico so the log
filter no longer needs a per-env list (and previously didn't match
because req.path has a leading slash).

A new environment is now: drop two files in public/, set
extraBodyClass in the env properties file. No TS or pug changes.
2026-05-29 16:46:02 -04:00
..
2025-10-14 13:51:16 +02:00
2019-09-06 19:39:31 -04:00
2022-11-13 10:35:39 -06:00