Skip to content
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

Merged
merged 1 commit into from
Feb 16, 2022
Merged

chore: add workers-chat-demo #475

merged 1 commit into from
Feb 16, 2022

Conversation

threepointone
Copy link
Contributor

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.

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.
@changeset-bot
Copy link

changeset-bot bot commented Feb 16, 2022

⚠️ No Changeset found

Latest commit: 0cfea4d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions
Copy link
Contributor

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

@threepointone
Copy link
Contributor Author

Landing this.

@threepointone threepointone merged commit 8ef95fd into main Feb 16, 2022
@threepointone threepointone deleted the workers-chat-demo branch February 16, 2022 12:11
mrbbot added a commit that referenced this pull request Oct 31, 2023
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.
mrbbot added a commit that referenced this pull request Oct 31, 2023
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()`.
mrbbot added a commit that referenced this pull request Nov 1, 2023
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.
mrbbot added a commit that referenced this pull request Nov 1, 2023
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()`.
mrbbot added a commit that referenced this pull request Nov 1, 2023
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.
mrbbot added a commit that referenced this pull request Nov 1, 2023
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()`.
mrbbot added a commit that referenced this pull request Nov 1, 2023
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.
mrbbot added a commit that referenced this pull request Nov 1, 2023
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()`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant