Skip to content
Merged
Show file tree
Hide file tree
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
7 changes: 2 additions & 5 deletions src/content/docs/workers/development-testing/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -368,12 +368,9 @@ the bindings in an `Unstable_Config` object into a structure that can be passed
This wrapper simplifies proxy session management. It takes:

- The path to your Wrangler config, or an object with remote bindings.
- The current proxy session details (or `null` if none).
- The current proxy session details (this parameter can be set to `null` or not being provided if none).

It returns:

- `null` if no proxy session is needed.
- An object with the proxy session details if started or updated.
It returns an object with the proxy session details if started or updated, or `null` if no proxy session is needed.

The function:

Expand Down
6 changes: 6 additions & 0 deletions src/content/docs/workers/wrangler/api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,12 @@ const platform = await getPlatformProxy(options);

**Note:** If you use `wrangler`'s `--persist-to` option, note that this option adds a subdirectory called `v3` under the hood while `getPlatformProxy`'s `persist` does not. For example, if you run `wrangler dev --persist-to ./my-directory`, to reuse the same location using `getPlatformProxy`, you will have to specify: `persist: { path: "./my-directory/v3" }`.

- `experimental` `{ remoteBindings: boolean }`

Object used to enable experimental features, no guarantees are made to the stability of this API, use at your own risk.

- `remoteBindings` Enables `getPlatformProxy` to connect to [remote bindings](/workers/development-testing/#remote-bindings).

### Return Type

`getPlatformProxy()` returns a `Promise` resolving to an object containing the following fields.
Expand Down
Loading