javatextbook
javatextbook
CDCloudflare Developers
Created by javatextbook on 8/9/2024 in #pages-help
how to deploy CF Pages of existing static site using CLI, without using GitHub?
I’ve been developing a React project locally and the code is on a local for server not GitHub. I’m trying to create some automation so that using the CLI I can deploy to CF Pages ‘preview’ and promote to ‘production’
I’ve been using wrangler create cloudflare project since wrangler init is no longer supported and I’m having a hard time figuring out how to initialize a Pages project within an existing react project. Ideally all I want to do is programmatically be able to deploy my dist directory and overwrite the existing CF Pages deployments. My initial CF Pages deployment was via direct upload using the web drag and drop method. You can’t update a CF Pages deployment using that method. You need to use the CLI
13 replies
CDCloudflare Developers
Created by javatextbook on 1/17/2024 in #general-help
Non-www Domain Not Resolving to Cloudflare Pages Deployment
I am reaching out for assistance with configuring my domain to point to a Cloudflare Pages deployment. The 'www' subdomain is working perfectly, but the root domain (without 'www') does not resolve and is showing a browser error. Here's what my DNS setup looks like, minus the specific domain for privacy reasons: - A records for the root domain pointing to IP addresses (Proxied) - CNAME record for 'www' subdomain correctly pointing to my Cloudflare Pages deployment (Proxied) at [myname].pages.dev I am looking to direct traffic from the root domain to the same Cloudflare Pages deployment as the 'www' subdomain. I believe this may involve adjusting the A records or utilizing CNAME flattening, but I am unsure of the exact steps to take within the Cloudflare dashboard. I didn't see any specific IP address to use for the A record. Could you guide me through the process of setting up my DNS records to allow both the root domain and 'www' subdomain to serve the Cloudflare Pages deployment? If there are any specific settings or configurations that I should be aware of, please advise.
1 replies