File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -7,3 +7,4 @@ NEXTJS_ENV=development
77CLOUDFLARE_ACCOUNT_ID=your-account-id-here
88CLOUDFLARE_D1_TOKEN=your-api-token-here
99CLOUDFLARE_R2_URL=your-r2-url-here
10+ CLOUDFLARE_API_TOKEN=your-api-token-here
Original file line number Diff line number Diff 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
4848You'll need these from your Cloudflare account:
4949
50501 . ** Account ID** : Found in your Cloudflare dashboard (right sidebar)
51512 . ** 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
You can’t perform that action at this time.
0 commit comments