Connect Wp Headless NextJs hosted on Vercel with a custom domain and hosting on Hostinger
Unanswered
slo74_04936 posted this in #help-forum
Hi, I followed the steps on Vercel to connect my custom domain on Vercel without successfull.
I built a website using Wordpress (backend) and NextJs as frontend. Currently it's working on Vercel https://remotesquid.vercel.app/. When I'm trying to add a custom domain to Vercel (Settings > Domains) I got an error. I put the A record 76.76.21.21 on Hostinger, where it's hosted my Wordpress hosting and my domain, but it's impossible to complete this setup.
If I put the A record 76.76.21.21 on Hostinger, my Wordpress backend is not accessible because I need to delete Hostinger A record to avoid the IP conflict between two A records, so I don't know what I have to do. Please could you help me?
My knowledge on server configuration is really basic.
Thank you
Salva
I built a website using Wordpress (backend) and NextJs as frontend. Currently it's working on Vercel https://remotesquid.vercel.app/. When I'm trying to add a custom domain to Vercel (Settings > Domains) I got an error. I put the A record 76.76.21.21 on Hostinger, where it's hosted my Wordpress hosting and my domain, but it's impossible to complete this setup.
If I put the A record 76.76.21.21 on Hostinger, my Wordpress backend is not accessible because I need to delete Hostinger A record to avoid the IP conflict between two A records, so I don't know what I have to do. Please could you help me?
My knowledge on server configuration is really basic.
Thank you
Salva
2 Replies
@slo74_04936 Hi, I followed the steps on Vercel to connect my custom domain on Vercel without successfull.
I built a website using Wordpress (backend) and NextJs as frontend. Currently it's working on Vercel https://remotesquid.vercel.app/. When I'm trying to add a custom domain to Vercel (Settings > Domains) I got an error. I put the A record 76.76.21.21 on Hostinger, where it's hosted my Wordpress hosting and my domain, but it's impossible to complete this setup.
If I put the A record 76.76.21.21 on Hostinger, my Wordpress backend is not accessible because I need to delete Hostinger A record to avoid the IP conflict between two A records, so I don't know what I have to do. Please could you help me?
My knowledge on server configuration is really basic.
Thank you
Salva
Asian black bear
You really want the A on your domain root to be for Vercel, and also the www should be the CNAME for Vercel. Your headless WP will need a different domain to run on, which might be a subdomain of your main one. Like
admin.remotesquid.com would be a reasonable place to put it.You would need to update your code to look for the headless WP at the new alternative domain