Updating flash message generator to use environment specific config