I have an App Engine server, and I need to load the favicon. I tested it locally, and for some reason, it doesn't work in the browser even though I followed many tutorials even on stack overflow. any ideas why? app.yaml:
runtime: nodejs16
handlers:
# Serve all static files with url ending with a file extension
- url: /(.*\..+)$
static_files: \1
upload: (.*\..+)$
# - url: /favicon\.ico
# static_files: favicon.ico
# upload: favicon\.ico
- url: /favicon\.ico
static_files: favicon.ico
upload: favicon\.ico
- url: /static
static_dir: public
# Catch all handler to index.html
- url: /.*
static_files: index.html
upload: index.html
And I'm loading the favicon like this:
<link rel="icon" href="/favicon.ico" type="image/x-icon"/>
And my folder structure is this:
-build
--index.html
--app.yaml
--favicon.ico
--manifest.json
--robots.txt
--static
---css
---js
---media
...