Skip to content

Commit 5998c0a

Browse files
committed
docs: update README and example vars to include CLOUDFLARE_API_TOKEN and detailed API token permissions
1 parent 25d87fc commit 5998c0a

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.dev.vars.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ NEXTJS_ENV=development
77
CLOUDFLARE_ACCOUNT_ID=your-account-id-here
88
CLOUDFLARE_D1_TOKEN=your-api-token-here
99
CLOUDFLARE_R2_URL=your-r2-url-here
10+
CLOUDFLARE_API_TOKEN=your-api-token-here

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,25 @@ pnpm dev
4343

4444
## 2. Environment Setup
4545

46-
### Get Cloudflare credentials
46+
### Get Cloudflare credentials & API Token
4747

4848
You'll need these from your Cloudflare account:
4949

5050
1. **Account ID**: Found in your Cloudflare dashboard (right sidebar)
5151
2. **API Token**:
5252
- Go to [Cloudflare API Tokens](https://dash.cloudflare.com/profile/api-tokens)
5353
- Click "Create Token"
54-
- Use "D1:Edit" & "D1:Read" template or create custom with `Account: Cloudflare D1:Edit` permissions
54+
- Setup permissions for the following things
55+
56+
```bash
57+
Account - D1: Read
58+
Account - D1: Edit
59+
Account - Workers Agents Configuration: Edit
60+
Account - Workers Scripts: Edit
61+
Account - R2 Storage: Read
62+
Account - R2 Storage: Edit
63+
Zone - Zone: Read (only if using custom domains)
64+
```
5565
5666
### Create environment file
5767

0 commit comments

Comments
 (0)