wrangler pages functions build --sourcemap. But this definitely gets me in the ballpark. Thanks!request.text(); Should be used but when i attempt to use it i get this error Property 'text' does not exist on type 'RequestEvent'.ts(2339) is there some sveltekit thing I'm unaware of?RequestEvent.request.text()?request.request.text() looks weird but i guess that works now, thanks :)load receives the RequestEvent type with a bunch of other stuff, like params or platform alongside the original requestsw.js that runs in the browser? If so, that'll almost certainly just be a static JS file that you host on your Pages site - which is free. Static assets are free functions folder for example.--persist-to to reference a shared directory.wrangler.toml looks like:~/my-shared-project/.wrangler/state/kv/xyz-abc folder which should be shared between the two Wrangler instances,.
wrangler pages functions build --sourcemaprequest.text();Property 'text' does not exist on type 'RequestEvent'.ts(2339)RequestEvent.request.text()request.request.text()loadRequestEventparamsplatformrequestsw.jsfunctionswrangler dev --persist-to=~/my-shared-project/.wrangler/statewrangler pages dev --persist-to=~/my-shared-project/.wrangler/state --kv MY_PAGES_KV_BINDING=xyz-abc~/my-shared-project/.wrangler/state/kv/xyz-abcexport async function load({ request }) {
const body = await request.text()
}npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/5322823523/npm-package-wrangler-3485kv_namespaces = [
{ binding = "MY_WORKER_KV_BINDING", id = "xyz-abc", preview_id = "xyz-abc" }
]