Felix
Nitro useStorage use Brotli encoded json data
I have a Nuxt server route that should deliver a 400kb Brotli encoded JSON object. The json file is delivered over a custom server api route, because I need to set some custom headers for cache management with etags and set the correct content-type header.
How do I read the file correctly and make it fetchable by the user?
This is my current code:
5 replies