favicon.ico “not found error” in App Engine

前端 未结 4 1207
一向
一向 2020-12-13 17:10

I am trying to develop on Google App Engine and in the list of the errors displayed in the admin console I always see the following:

/favicon.ico

4条回答
  •  别那么骄傲
    2020-12-13 17:52

    I am using this snippet in a GAE app configuration:

    handlers:
    
      - url: /(.*\.(ico|png|webmanifest))$
        static_files: faviconfiles/\1
        upload: faviconfiles/.*\.(ico|png|webmanifest)$
    

    I then put the corresponding set of files (these days if you seriously want to set a "favicon" it's a set of files incl. e.g. apple-touch-icon.png) into the ./faviconfiles directory next to my app.yaml.

提交回复
热议问题