Backport critical app_config.js fix from sotu