Hello guys, i’m facing some problems during my deploy on digitalocean app platform.
i’ve created a react app wich contains a server folder, so i’ve configured the app like so:
env variables for url: REACT_APP_SERVER_BASE_URL is equal to ${APP_URL}
i can see clearly the frontend, but the app doesnt work, he can’t make api requests to the BE (i see raw html if i hit the login endpoint)
i’m not an expert but i really need your help
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there,
What you could do is to separate your frontend application and the Node.js backend application into different App components.
Here is a quick video that shows how you could do that:
Hope that this helps!
Best,
Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.