Fetching data from R2 in cloudflare-next

Could anyone help me with one problem? I'm trying to access an image in my Next.js app made with cloudflare latest, I specified the image name with and without its file extension, but it keeps returning
null
to the console.log, despite the image file already exists in the bucket.
Was this page helpful?