-
Notifications
You must be signed in to change notification settings - Fork 6.5k
getPlatformProxy "persist" docs are missleading #22007
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
Comments
Hi @clibequilibrium 🙂 👋 Thanks for the issue 🙂 Could you please clarify what part of the docs you find incorrect and what you find incorrect about it? I'm confused because when I navigate to https://developers.cloudflare.com/workers/wrangler/api/#getplatformproxy this is what I see for the The docs do seem to say that am I missing something here? 🤔 |
Hi, thank you! Yes the part that is wrong is: The persist flag actually expects an object not a string. So specifying the path like so:
will not work. Only
will work. See this line https://github.com/cloudflare/workers-sdk/blob/d34ef3d5b0e45470e6c06a7bd24a498f85b98af8/packages/wrangler/src/api/integrations/platform/index.ts#L226 If the user just passes the string, wrangler will not consume it as it expects an object with the variable path in it. |
Thank you for the clarification @clibequilibrium 🙂 Yes you're right, I didn't notice that bit, that's indeed a small mistake in the |
The issue should have been fixed now @clibequilibrium 😄, if you want please take a look and let me know if you still spot anything wrong 🙂 thanks again for reporting the issue 🙂 |
Which Cloudflare product(s) does this pertain to?
Wrangler
What versions & operating system are you using?
v3+
Please provide a link to a minimal reproduction
No response
Describe the Bug
Hi, getPlatformProxy , persist option expects a boolean or string. However if the user passes a string path it is not respected. See this line in wrangler https://github.com/cloudflare/workers-sdk/blob/d34ef3d5b0e45470e6c06a7bd24a498f85b98af8/packages/wrangler/src/api/integrations/platform/index.ts#L226
This fails:
This succeeds:
Either docs need to be edited or wrangler has to be fixed to respect the string parameter.
https://developers.cloudflare.com/workers/wrangler/api/#getplatformproxy
The text was updated successfully, but these errors were encountered: