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