Why not just an app.yml var?
Ember code doesn’t read arbitrary env vars. Discourse only exposes declared site settings (config/settings.yml, client: true) to the client. That’s why you either:
- add the setting in core (then set via app.yml), or
- avoid settings and use a theme component redirect.