Hosting on Railway - 401 error after inactivity

Anyone find a solution for this?

I’m having the same issue with render.com
Weird that if I just log in to render and refresh the my site, problem is gone for a while (minutes, hours), then again, error 502 Bad Gateway.

I tried with a paid plan too (someone somewhere suggest that could be because strapi needs more “power”, but a better plan doesn’t solve it.