Skip to content

Commit 5c1c1dd

Browse files
fix wrong persist value in getPlatformProxy docs (#22008)
--------- Co-authored-by: ToriLindsay <[email protected]>
1 parent 1f48ac2 commit 5c1c1dd

File tree

1 file changed

+1
-1
lines changed
  • src/content/docs/workers/wrangler

1 file changed

+1
-1
lines changed

src/content/docs/workers/wrangler/api.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ const platform = await getPlatformProxy(options);
298298

299299
Indicates if and where to persist the bindings data. If `true` or `undefined`, defaults to the same location used by Wrangler, so data can be shared between it and the caller. If `false`, no data is persisted to or read from the filesystem.
300300

301-
**Note:** If you use `wrangler`'s `--persist-to` option, note that this option adds a sub directory 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: "./my-directory/v3"`.
301+
**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" }`.
302302

303303
### Return Type
304304

0 commit comments

Comments
 (0)