-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getItemRaw() on PNG returns null #222
Comments
#142 (I only tested the await useStorage('assets:public').getItemRaw('x.png') // not work, get null
await useStorage().getItemRaw('assets:public:x.png') // work |
Thanks a lot @maou-shonen Cheers! |
@maou-shonen It's weird. It works in dev but when you build it and run |
Maybe you can provide a minimal reproduction? |
I found another solution. Using base64 images now so that I don't that extra loop with |
Hmm... I'm not sure. |
Environment
Node: 18.6.0
NPM: 8.19.2
unjs/unstorage: 1.6.0
Reproduction
Hopefully description is enough here
Describe the bug
On a brand new Nuxt 3 project I'm using the Nitro Custom Server Assets feature to access files from public folder on server-side API. To access one of the files I'm using the
getItemRaw()
method expecting the buffer as a result but gettingnull
instead.Additional context
Looks like driver is
memory
when used with Nuxt. Could this be an issue?I also described the problem here: nitrojs/nitro#1230
Logs
No response
The text was updated successfully, but these errors were encountered: