I am using the Firebase Admin SDK in a next project. I have an api endpoint that needs to get a file from the firebase storage
const file = await getStorage().bucket().file(uid+"/sample.png").createReadStream()
When I run the code, this error appears:
Error during SSR Rendering
error rendering: Error: crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported
I looked for the error message but it is always related to react native. I don't know what I am doing wrong here. The same error occurs if I try download() instead of createReadStream()