Display favicon in Heroku Dash app

To further update the community on this. I just want to clarify that I think I’ve exhausted every known avenue and I STILL cannot get my heroku hosted dash app to display a custom favicon. I’m quite new to dash and front end development so I’m sure I’m doing something stupid.

Things I’ve tried

  • I have got whitenoise running, so I can serve static files on heroku deployment, including the favicon.ico to /static and /static/assets (where static becomes root on heroku deployment).
    i.e. I’ve created an assets subfolder within root, so it looks like an identical folder structure to my localhost setup when deployed locally and working fine

  • I’ve tried custom flask callback like so:

@server.route(’/favicon.ico’)
def favicon():
return flask.send_from_directory(os.path.join(server.root_path, ‘static’),
‘favicon.ico’)

If someone can guide me to how to use a developer console or something to watch what is happening at page load perhaps this can shed light on it. I’m sure there must be a way to get favicon’s displaying on Dash-Heroku. Please advise!