Skip to content

Commit dfede5b

Browse files
committed
doc: add doc for R2
1 parent 9207207 commit dfede5b

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,14 @@ This is a pastebin that can be deployed on Cloudflare workers. Try it on [shz.al
2626
## Limitations
2727

2828
1. If deployed on Cloudflare Worker free-tier plan, the service allows at most 100,000 reads and 1000 writes, 1000 deletes per day.
29-
2. Due to the size limit of Cloudflare KV storage, the size of each paste is bounded under 25 MB.
3029

3130
## Deploy
3231

3332
You are free to deploy the pastebin on your own domain if you host your domain on Cloudflare.
3433

3534
1. Install `node` and `yarn`.
3635

37-
2. Create a KV namespace on Cloudflare workers dashboard, remember its ID.
36+
2. Create a KV namespace and R2 bucket on Cloudflare workers dashboard, remember its ID.
3837

3938
3. Clone the repository and enter the directory.
4039

src/handlers/handleWrite.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import {
1616
} from "../shared.js"
1717

1818
function suggestUrl(short: string, baseUrl: string, filename?: string, contentAsString?: string) {
19-
// TODO: should we suggest for URL redirect?
2019
if (filename) {
2120
return `${baseUrl}/${short}/${filename}`
2221
} else if (contentAsString && isLegalUrl(contentAsString)) {

0 commit comments

Comments
 (0)