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.
7 Replies
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
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?
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
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 …
and once I deploy to production instead of preview, it'll start working?
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
Thank you