by kiru (21.10.2022)

Phoenix Does Not Serve Webmanifest


My site.manifest were not loaded with Elixir Phoenix 1.6. It turned out I have to add the file to the whitelist.

I generated some favicons and added them to /priv/static folder. Among others there is a site.webmanifest file, which was not served by Phoenix.

It turned out, I have to whitelist that file in endpoint.ex:

# You should set gzip to true if you are running phx.digest
# when deploying your static files in production.
plug Plug.Static,
  at: "/",
  from: :slash_dreamer,
  gzip: false,
  only: ~w(assets fonts images favicon.ico robots.txt videos site.webmanifest)