docs: add Cloudflare R2 TUS Upload example#770
Open
riderx wants to merge 2 commits intohonojs:mainfrom
Open
Conversation
yusukebe
reviewed
Nov 4, 2025
|
|
||
| ## Installation | ||
|
|
||
| ```bash |
Member
|
|
||
| ## Configuration | ||
|
|
||
| First, configure your R2 bucket and Durable Object bindings in `wrangler.toml`: |
Member
There was a problem hiding this comment.
How about adding a wrangler.jsonc example?
| text: 'Cloudflare Durable Objects', | ||
| link: '/examples/cloudflare-durable-objects', | ||
| }, | ||
| { |
Member
There was a problem hiding this comment.
Can you put the link here?
"TUS" is interesting and useful, but it has lower priority than "Cloudflare Testing".
The diff:
diff --git a/.vitepress/config.ts b/.vitepress/config.ts
index 1adf1e0..f6448df 100644
--- a/.vitepress/config.ts
+++ b/.vitepress/config.ts
@@ -303,10 +303,6 @@ export const sidebarsExamples = (): DefaultTheme.SidebarItem[] => [
text: 'Cloudflare Durable Objects',
link: '/examples/cloudflare-durable-objects',
},
- {
- text: 'Cloudflare R2 TUS Upload',
- link: '/examples/cloudflare-r2-tus-upload',
- },
{
text: 'Cloudflare Queue',
link: '/examples/cloudflare-queue',
@@ -315,6 +311,10 @@ export const sidebarsExamples = (): DefaultTheme.SidebarItem[] => [
text: 'Cloudflare Testing',
link: '/examples/cloudflare-vitest',
},
+ {
+ text: 'Cloudflare R2 TUS Upload',
+ link: '/examples/cloudflare-r2-tus-upload',
+ },
{
text: 'Remix',
link: '/examples/with-remix',
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This Pr adds a exemple of implementing TUS protocole with Hono and clouflare workers, r2 and durable object