cloudflare-docs icon indicating copy to clipboard operation
cloudflare-docs copied to clipboard

Update persistState configuration format

Open roerohan opened this issue 1 month ago • 2 comments

Summary

persistState accepts a { path: '...' } object and not a string.

type PersistState = boolean | {
  path: string;
};

Screenshots (optional)

image

Documentation checklist

  • [ ] Is there a changelog entry (guidelines)? If you don't add one for something awesome and new (however small) — how will our customers find out? Changelogs are automatically posted to RSS feeds, the Discord, and X.
  • [ ] The change adheres to the documentation style guide.
  • [ ] If a larger change - such as adding a new page- an issue has been opened in relation to any incorrect or out of date information that this PR fixes.
  • [ ] Files which have changed name or location have been allocated redirects.

roerohan avatar Dec 09 '25 22:12 roerohan

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/src/content/docs/workers/ @cloudflare/workers-docs, @GregBrimble, @irvinebroque, @mikenomitch, @korinne, @WalshyDev, @cloudflare/deploy-config, @cloudflare/pcx-technical-writing, @cloudflare/wrangler, @cloudflare/workers-runtime-1, @mattietk

github-actions[bot] avatar Dec 09 '25 22:12 github-actions[bot]

Preview URL: https://b6cf453e.preview.developers.cloudflare.com Preview Branch URL: https://persist-state-path.preview.developers.cloudflare.com

Files with changes (up to 15)

Original Link Updated Link
https://developers.cloudflare.com/workers/development-testing/local-data/ https://persist-state-path.preview.developers.cloudflare.com/workers/development-testing/local-data/

github-actions[bot] avatar Dec 09 '25 22:12 github-actions[bot]