stillmotion
stillmotion
Explore posts from servers
CDCloudflare Developers
Created by stillmotion on 3/22/2024 in #workers-help
Next.js getPlatformProxy R2 binding not uploading to bucket?
When using the getPlatformProxy in Next.js via the @cloudflare/next-on-pages/next-dev monkey patch, calls to upload a file to my bound R2 bucket do not upload files to the actual bucket. Is this expected behavior or do I have a configuration error?
const result = await getRequestContext().env.BUCKET_NAME.put(key, buffer)
const result = await getRequestContext().env.BUCKET_NAME.put(key, buffer)
printing result, all fields of the object are undefined. The .wrangler directory does cache the upload in one of its subdirectories, however.
3 replies