-
Notifications
You must be signed in to change notification settings - Fork 507
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
JSON file content returned as binary instead of json if sent as nested response #2217
Comments
I think we can add Or maybe make it configurable. !Content module broken with latest nitro nuxt/content#2580 |
Feel free to make a PR adding more known extensions 🙏 (also you can make sure in usage to always convert to string with .toString(utc8)) |
Hmm, now routes called Seems breaking: dargmuesli/creal#442 Should this be a created as a new issue? |
A new issue with minimal nitro reproduction would be helpful 🙏 |
Couldn't reproduce in plain nitro, so I've created a bug ticket for Nuxt instead: nuxt/nuxt#26168 |
Environment
Stackblitz
Reproduction
npm run build && node .output/server/index.mjs
Describe the bug
When fetching a JSON file via server assets (
useStorage
) and return it as a wrapped object (e.g.{ item }
), it is not returned as content but as UInt8 array.This didn't happen before.
Additional context
Introduced via 60eb9f6 / #2107
Logs
No response
The text was updated successfully, but these errors were encountered: