-
Notifications
You must be signed in to change notification settings - Fork 736
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
chore: add workers-chat-demo #475
Conversation
This adds the `workers-chat-demo` from https://github.com/cloudflare/workers-chat-demo as an example app into our monorepo. It has some modifications, documted at the top of its `README.md`. Of note, you'll note that this _doesn't_ work with wrangler. Landing this so we can debug and have a shared reference that we need to get to work.
|
A wrangler prerelease is available for testing. You can install it in your project with: npm install --save-dev https://prerelease-registry.developers.workers.dev/runs/1852676174/wrangler Or you can try developing a worker directly with: npx https://prerelease-registry.developers.workers.dev/runs/1852676174/wrangler dev path/to/script.js |
Landing this. |
Previously, the `MF-Custom-Service` header was including on the `request` parameter passed to custom service functions. This usually wasn't a problem, but if the request ever made it back to the loopback server (e.g. via `caches.default.put(request, ...)`), it would be forwarded back to the custom service instead of the appropriate plugin router.
Similar to #475, we weren't deleting the `MF-Original-URL` header from incoming requests, leading to incorrect URLs in the loopback server when the incoming request was passed-through as the cache key. Tests also needed to be updated as the storage location is now based off the actual URL passed to `dispatchFetch()`.
Previously, the `MF-Custom-Service` header was including on the `request` parameter passed to custom service functions. This usually wasn't a problem, but if the request ever made it back to the loopback server (e.g. via `caches.default.put(request, ...)`), it would be forwarded back to the custom service instead of the appropriate plugin router.
Similar to #475, we weren't deleting the `MF-Original-URL` header from incoming requests, leading to incorrect URLs in the loopback server when the incoming request was passed-through as the cache key. Tests also needed to be updated as the storage location is now based off the actual URL passed to `dispatchFetch()`.
Previously, the `MF-Custom-Service` header was including on the `request` parameter passed to custom service functions. This usually wasn't a problem, but if the request ever made it back to the loopback server (e.g. via `caches.default.put(request, ...)`), it would be forwarded back to the custom service instead of the appropriate plugin router.
Similar to #475, we weren't deleting the `MF-Original-URL` header from incoming requests, leading to incorrect URLs in the loopback server when the incoming request was passed-through as the cache key. Tests also needed to be updated as the storage location is now based off the actual URL passed to `dispatchFetch()`.
Previously, the `MF-Custom-Service` header was including on the `request` parameter passed to custom service functions. This usually wasn't a problem, but if the request ever made it back to the loopback server (e.g. via `caches.default.put(request, ...)`), it would be forwarded back to the custom service instead of the appropriate plugin router.
Similar to #475, we weren't deleting the `MF-Original-URL` header from incoming requests, leading to incorrect URLs in the loopback server when the incoming request was passed-through as the cache key. Tests also needed to be updated as the storage location is now based off the actual URL passed to `dispatchFetch()`.
This adds the
workers-chat-demo
from https://github.com/cloudflare/workers-chat-demo as an example app into our monorepo. It has some modifications, documted at the top of itsREADME.md
.Of note, you'll note that this doesn't work with wrangler. Landing this so we can debug and have a shared reference that we need to get to work.