R2 Object Storage - 500 Error

I am experiencing the following error when I try to upload an image to R2 within PayloadCMS. Not sure how to resolve this.

Here is the /package.json file:
https://jsbin.com/vozasahevi/edit?js

And here is the /src/payload.config.ts file:
https://jsbin.com/deyowizahi/edit?js

The /.env file contains CLOUDFLARE_ENDPOINT, CLOUDFLARE_ACCESS_KEY_ID, CLOUDFLARE_SECRET_ACCESS_KEY, and CLOUDFLARE_BUCKET
Screenshot_2024-05-15_at_7.02.53_PM.png
A live pastebin for HTML, CSS & JavaScript and a range of processors, including SCSS, CoffeeScript, Jade and more...
A live pastebin for HTML, CSS & JavaScript and a range of processors, including SCSS, CoffeeScript, Jade and more...
Was this page helpful?