I can’t figure out why my Netlify page can’t access my RoR backend on Heroku. When I run the build folder on port 5000, it works. When I navigate to the Netlify page, it doesn’t. I see the frontend html, but nothing from my db.
Thoughts? I did include
I think it’s a redirects problem. You’ve added a wildcard route /* that matches all the URLs of the website. This means even your /api/* route is actually getting redirected to /index.html.
You should move your /api/* route above the /* route so that it gets matched before the other one.