From 7aa1b990776cbdc97438d0335ca33f78a834290b Mon Sep 17 00:00:00 2001 From: Ben Vinegar <2153+benvinegar@users.noreply.github.com> Date: Fri, 20 Dec 2024 12:24:39 -0500 Subject: [PATCH] Remove deprecated steps from README --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 78d36960..665d6b5b 100644 --- a/README.md +++ b/README.md @@ -30,14 +30,12 @@ If you don't have one already, [create a Cloudflare account here](https://dash.c 1. With your terminal, navigate to the folder containing the source files. 1. Run `npm install` 1. Run `npx wrangler pages project create counterscale` and create a new Pages project. - 1. You will be prompted to enter the "production branch name". Just use the default provided. + 1. You will be prompted to enter the "production branch name". Just use the default provided (e.g. "main" or "production"). * _NOTE: If this is your first time invoking `wrangler` on the terminal, you will be prompted to sign into your Cloudflare account._ 1. Run `npx wrangler pages secret put CF_BEARER_TOKEN` → when prompted, paste the API token you created 1. Run `npx wrangler pages secret put CF_ACCOUNT_ID` → when prompted, paste your Cloudflare Account ID * Find your account ID by visiting Workers and Pages > Overview. It is displayed on the right hand side of the screen. 1. Run `npm run deploy` – this will do several things: - 1. Prompt you to create a new Cloudflare Pages project (`counterscale`) - 1. Prompt you for the production branch name (default is your current branch, i.e. `main`) 1. Create a new Analytics Engine dataset, called `metricsDataset` 1. Deploy the site and give you the deployment URL. 1. The site should now be deployed. Visit `https://{subdomain-emitted-from-npm-run-deploy}.pages.dev`.