Pages custom domain with workers using custom subdomain.

I have been using my domain with subdomains for my workers and they are working great. But I recently added a page that I want to serve as a temporary landing page for my business but my pages deployment doesn't work on my url and I continue to get the pages default landing page. I've included a picture of all my dns records and I'm hesitant to alter them since Cloudlfare auto setup all of them.
No description
7 Replies
MBrimmer
MBrimmerOP12mo ago
All four "A" records ip addresses point to vercel which is where I moved from. I'm guessing I need to delete those records but I don't know what there replacement should be
Chaika
Chaika12mo ago
Unrelated It seems Pages doesn't think you have any production builds. Under the deployment tab of your pages project do you have any Production Environment builds or are they all preview?
MBrimmer
MBrimmerOP12mo ago
Oh they are all preview But I should delete those A records, right? Those ip's are vercel and I'm moving everything to cloudflare now
Chaika
Chaika12mo ago
then yea fine to delete, with Pages you can just add a redirect from www to apex after you get it working -> https://developers.cloudflare.com/pages/how-to/www-redirect/
Redirecting www to domain apex · Cloudflare Pages docs
In this guide, you will learn how to redirect the www subdomain to your apex domain (example.com). This is a common question and can be achieved by …
MBrimmer
MBrimmerOP12mo ago
and once I deploy to production instead of preview, it'll start working?
Chaika
Chaika12mo ago
Are you using a project attached to a Git repo or directly uploaded/uploaded via wrangler? Connected to repo is recommended, you can change the producton branch under Settings -> Builds & Deplotments -> Configure Production Deployments yes
MBrimmer
MBrimmerOP12mo ago
Thank you
Want results from more Discord servers?
Add your server