How to deploy react frontend with strapi backend?

hi there,
I have recently finished an ecommerce project using React as frontend and Strapi as backend. I have successfully deployed backend in Heroku and have now deployed React frontend in Netlify but I am unsure as to how to connect both apps.

this is my site:
I believe I would need to get the API_URL link from Heroku under the settings, and I have added that under site settings, environment variables. But it’s not working, what am I doing wrong?

thanks for your help, I am very new to deployment!

Hi welcome to the forums!

Can you take a look at this thread as this is similar and see if this helps?

1 Like