Thanks yeah the error-catching was fully broken. But I fixed it all and I was actually getting a 404 in prod(I believe because I was placing the files in priv/static
, which dev could find but not prod … could be a copydir issue while building the release docker image, not sure yet).
I’m getting the files now but I have to place them in assets/static and I manually added the literal names in the only:
clause in the plug in endpoint.ex:
plug Plug.Static,
at: "/",
from: :faithful_word_api,
gzip: false,
only: ~w(css fonts images js favicon.ico robots.txt apple-app-site-association assetlinks.json)
(not using .well-known at the moment, apparently you can optionally place them at webroot).
Thanks for putting me in the right direction.