-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forward cdn-cgi/scripts paths to Cloudflare #422
Conversation
Right now, Miniflare 404s on attempts to download `rocket-loader.min.js`. For folks who've set up a Worker in front of Cloudflare Pages (e.g. to handle API requests on the same domain), this breaks their web app during local development: it renders as a white screen. This PR adds a small amount of logic to simply forward those requests onto Cloudflare.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey! 👋 Thanks for the PR! Added a couple comments. 👍
Co-authored-by: MrBBot <me@mrbbot.dev>
Thanks for the feedback! I've done as suggested on both :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Thanks for making those fixes, I've added a couple more, then we can merge this. 👍
Co-authored-by: MrBBot <me@mrbbot.dev>
Co-authored-by: MrBBot <me@mrbbot.dev>
@mrbbot Done! |
This addresses issue #421.
Right now, Miniflare 404s on attempts to download
rocket-loader.min.js
. For folks who've set up a Worker in front of Cloudflare Pages (e.g. to handle API requests on the same domain), this breaks their web app during local development: it renders as a white screen.This PR adds a small amount of logic to simply forward those requests onto Cloudflare.