I have a domain example.com that I use for the frontend of my application, hosted on Vercel. I’ve passed the DNS records provided by Vercel to my registrar (Squarespace). If I access example.com the frontend is being displayed.
Now, I have a droplet for the backend of my application which for now only has some dependencies and Nginx installed. If I visit http://droplet-ip the default Nginx page is displayed. How can I achieve the same behaviour by visiting http://api.example.com ?
I’ve added a new DNS record to Squarespace:
But for some reason when I try to visit http://api.example.com it redirects me to https://api.example.com and a Vercel specific error is being displayed “Deployment not found”. What am I doing wrong here?
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!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.