question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

🚀 Feature Request: Add support for easy proxying to R2 using Pages _redirects file

See original GitHub issue

Describe the solution

The Pages documentation for redirects seems to say that easy proxying will be supported later, with syntax such as:

/blog/* https://blog.my.domain/:splat 200

I’m very excited for that feature, but even more exciting would be to also add easy read-only proxying of private R2 buckets with syntax such as:

/blog/* r2://my-bucket/:splat 200

This would notably be very useful to work around Page’s 25MB filesize limit.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Skye-31commented, Aug 16, 2022

Fwiw, R2 is supported on pages functions now

1reaction
Hexstreamcommented, Jul 13, 2022

Hey there! Thanks for the feature request. What if this was a plugin?

Have you thought about putting files in a R2 bucket and use a Pages function to serve them?

Pages Functions does not appear to support R2 bindings yet, so I was planning to just use a Worker to proxy R2.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Redirects and rewrites - Netlify Docs
Manage traffic to your site by defining redirect or rewrite rules in a _redirects file or a netlify.toml file.
Read more >
Proposal: native redirects config · Issue #7392 · ipfs/kubo
This is currently true for results redirected to a local node via IPFS Companion or for IPFS hosting services such as Fleek. Proposal....
Read more >
Create redirects for GitLab Pages
Introduced in GitLab 14.3. Use placeholders in rules to match portions of the requested URL and use these matches when rewriting or redirecting...
Read more >
Working with Redirects and Rewrites - Gatsby Cloud
What is a redirect? Redirects are settings in the network layer that allow you to route traffic from one url path to another...
Read more >
How to Create NGINX Rewrite Rules
Rewrite rules change part or all of the URL in a client request, ... the return directive is simple to use, and suitable...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found