So in your project it needs to be in /priv/static/images/… and the route will be /images/… or /priv/static/assets/images/…–/assets/images/…. Which one of these matches with what you have?
Phoenix 1.6 and the change to esbuild removed the handling of static assets between assets and /priv/static. Only /priv/static/assets has generated files (js/css), all other things in there you can maintain where they are.
OK, as confusing as it sounds here is what the doc is saying:
assets - a directory that keeps source code for your front-end assets, typically JavaScript and CSS. These sources are automatically bundled by the esbuild tool. Static files like images and fonts go in priv/static
I am not very fun of putting things here and there, but this is how they decided to put it
You made my day I was wondering why some files were still being served without any Plug.Static configuration in router.ex and the user not being authenticated.