Rails assets won't load when using nixpacks
Well, for some reason the assets in the public folder in Rails just won't load.
They are there, I can see them when I
run railway run ls public
. But they throw a 404 error.3 Replies
The img tag can't find the image for example. The same happens for CSS and JS files
The build logs
from https://guides.rubyonrails.org/v3.2/configuring.html
Let's see if it's caused by this config
Fixed it by adding RAILS_SERVE_STATIC_FILES environment variable