-
Notifications
You must be signed in to change notification settings - Fork 545
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
Server assets using getItemRaw
is inconsistent
#1926
Comments
Might be related for |
I assume this issue is storage related and also seem to be the case for |
Hi, in my case I was trying to use pdfmake in the I've been facing 2 issues
in order to use file asset as a regular file I had to do a small hack to include assets into the final bundle. in the
then I can use regular path, for example using
@pi0 is there is any better option how to append a custom folder to final build ideally through the nitro config? Thanks :) |
Hi, I have the same problem with getItem This api... I think it might be related with: #2481 |
Since const rawBuffer = await storage.getItem('myCert.pem').then((item) => Buffer.from(item as any)) Feels a bit hacky and quite redundant, but I guess it will have to do for now. Maybe a |
Proposed Current |
Amazing! Thanks for the heads up Pooya |
Environment
Node 20+
Nitro 2.7.2
Reproduction
StackBlitz
npm run dev
returnsBuffer
npm run build && npm run preview
returnsstring
Describe the bug
Getting the raw file using
getItemRaw
returnBuffer
vsstring
in preview.Testet with
node-server
andfirebase
providers.Additional context
I'm trying to get a static server assets PDF generation.
Example included as
/pdf
in the StackBlitz.I know
getItemRaw
is still marked experimental, but I don't see any other API to access simple PNG data?Logs
No response
The text was updated successfully, but these errors were encountered: