Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Forward cdn-cgi/scripts paths to Cloudflare (#422)
* Forward cdn-cgi/scripts paths to Cloudflare 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. * Update packages/http-server/src/index.ts Co-authored-by: MrBBot <me@mrbbot.dev> * Update index.ts * add missing paren Co-authored-by: MrBBot <me@mrbbot.dev> * remove unneeded import Co-authored-by: MrBBot <me@mrbbot.dev> * Update index.ts Co-authored-by: MrBBot <me@mrbbot.dev>
- Loading branch information