Hey All,
I've made a custom front end for my client and have made major moves in converting their WP/Woo website into a headless CMS backend for it, but now I'm getting to the part where I actually need to push to production and set up the domain and everything else properly.
I was wondering if anyone with more experience can shed some light on the best way to do this. I'm not super experienced with domains yet, so forgive my knowledge gaps.
So essentially what I've done so far is:
- Created a subdomain "backend.<website>.com" (I created this through cPanel, and not their GoDaddy account, is that the same thing as doing it in GoDaddy? Or should I have done it there instead/as well?)
- Added an SSL cert to that subdomain
- At this point, if I navigate to backend.<website>.com, everything behaves normally
- Changed all of my endpoint calls in the new front end to call this subdomain – success here as well
Now I'm kind of lost for what to do for next steps. I'm planning on hosting the new front end on Vercel servers.
Do I just deploy the application on Vercel and add the domain there as I would normally? Do I have to go into cPanel/GoDaddy and remove the records for the old<website>.com domain first?
As well as a couple of questions:
- If I do have to remove the records for the old website: I was testing removing certain unnecessary plugins from the website, and to do so I tried making a staging website using "WP Staging". When I created the staging website, I got an error from their Clover payment gateway plugin integration – something along the lines of "Multiple websites were found, adjust your configuration to continue using Clover", and it broke the back end/POS (could no longer submit orders).
- Will changing the DNS records cause this to happen again?
- I just want to confirm that it is indeed possible to have backend.<website>.com pointing to WooCommerce/WP and <website>.com pointing to my NextJS Vercel app
Thank you very much for your time.
