Basic File Directory Question: Assets never works so I put files in priv/static/assets. What am I doing wrong?

When I put files in the assets folder my app suppose to “build” and make those files available to priv/static/assets , correct?

I keep expecting to put files in assets and have them available to my app and my app doesn’t find them. I end up putting favicons and images in priv/static/assets.

Today I went to change the “Favicon” , I placed the files in “assets”. Then in root.html.heex I tried to reference them via:

    <link rel="icon" type="image/png" href="/assets/images/favs/favicon-32x32.png">
<link rel="icon" type="image/png" href="/assets/images/favs/favicon-16x16.png">
<link rel="icon" type="" href="/assets/images/favs/favicon.ico">

I recompiled.
My app didn’t find them.

I placed them directly in priv/static/assets and my app finds them.

What am I doing wrong?

1 Like