I have a domain and my landing page is displayed at
example.com, but I also need this to be the domain for my DigitalOcean Droplet which hosts the Node.js backend for my React apps. However, I'm having some trouble using the domain with both services. DigitalOcean suggested setting up the nameserver so that the DNS settings can be managed through DigitalOcean, so that's what I did.
I basically transferred all my DNS records from my Google Domains account to the DigitalOcean DNS manager and for the most part everything looks fine. If I go to
example.com I can see my Webflow site. But if I go to
example.com/api I'm just getting a 404 page not found (which is the same one I designed in Webflow). In other words, it doesn't look like I'm connecting to my Droplet with this domain because if I go to
dropletip:port I get
Cannot GET /api (which is expected since there's no
Is it possible to use one domain for DigitalOcean and Webflow? Right now I have an A record that points to Webflow's IP address and my Droplet's IP address, but like I said, only Webflow's is being reached.