Front-End Web Deep Dive: Runtime Config
Heroku's Front-End Web Cloud Native Buildpack provides runtime configuration for static web apps by writing PUBLIC_WEB_-prefixed environment variables into the HTML <head> as data-* attributes each time the bundled static server starts.