Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions pages/configuration/r2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,31 @@ Create a new Bucket.

<img src="https://github.com/user-attachments/assets/f679ff9f-1a9c-4d09-b663-2fa2baadea93" />

Create your R2 Token by clicking "Manage R2 API Tokens"
Create your R2 Token by going to R2 Object Storage:

<img src="https://github.com/user-attachments/assets/f47e0b90-834f-4c18-abe0-a89b62ca6458" />
<img src="https://i.imgur.com/yVJwVBb.png" />

Click on the API dropdown, and select [Manage API tokens](https://dash.cloudflare.com/?to=/:account/r2/api-tokens):

<img src="https://i.imgur.com/PmzyGeQ.png" />

Copy your Account ID for later, and click on "Create an API token":

<img src="https://i.imgur.com/hvsGnWI.png" />

Create an Account API token:

<img src="https://i.imgur.com/MvZsYfC.png" />

Under "Permissions" choose "Object Read & Write" and under "Specify bucket(s)" search for your created Bucket.

<img src="https://github.com/user-attachments/assets/30991d43-9920-47d4-9c53-bde619974009" />

After the R2 Token was created, copy your "Access Key ID" and "Secret Access Key"
After the R2 Token is created, copy your "Access Key ID" and "Secret Access Key":

<img src="https://github.com/user-attachments/assets/d4b4218f-fe20-47ec-937a-0d516fa74c64" />

Copy the information respectfully into your .env environment.
Paste the respective information into your .env environment.

```dotenv
CLOUDFLARE_ACCOUNT_ID="accountId"
Expand Down