I have images in priv/static/uploads directory but they are not showing. I inspected static_paths IO.inspect(BlogWeb.static_paths, label: "Static Paths")
and found out that uploads folder is not there: Static Paths: ["assets", "fonts", "images", "favicon.ico", "robots.txt"]
. Is there a way I could add the uploads directory to the static_paths plug?
plug Plug.Static,
at: "/",
from: :blog_web,
gzip: false,
only: BlogWeb.static_paths()
I tried this:
plug Plug.Static,
at: "/",
from: :blog_web,
gzip: false,
only: ~w(css fonts images js favicon.ico robots.txt uploads)
The images are rendering but it seems that it interferes with CSS.