Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions src/content/docs/workers/development-testing/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,9 @@ This type conversion is temporary. In the future, the types will be unified so y

This wrapper simplifies proxy session management. It takes:

- The path to your Wrangler config, or an object with remote bindings.
- An object that contains either:
- the path to a Wrangler configuration and a potential target environment
- the name of the Worker and the bindings it is using
- The current proxy session details (this parameter can be set to `null` or not being provided if none).
- Potentially the auth data to use for the remote proxy session.

Expand Down Expand Up @@ -393,12 +395,12 @@ let remoteProxySessionDetails: Awaited<ReturnType<typeof experimental_maybeStart

async function startOrUpdateDevSession() {
remoteProxySessionDetails = await experimental_maybeStartOrUpdateRemoteProxySession({
bindings: {
MY_KV: {
type: 'kv_namespace',
id: 'kv-id',
experimental_remote: true,
}
bindings: {
MY_KV: {
type: 'kv_namespace',
id: 'kv-id',
experimental_remote: true,
}
}
},
remoteProxySessionDetails
Expand Down