nitro icon indicating copy to clipboard operation
nitro copied to clipboard

feat: support prerendering binary files

Open danielroe opened this issue 2 years ago • 0 comments

🔗 Linked issue

#319

❓ Type of change

  • [ ] 📖 Documentation (updates to the documentation or readme)
  • [ ] 🐞 Bug fix (a non-breaking change that fixes an issue)
  • [x] 👌 Enhancement (improving an existing functionality like performance)
  • [ ] ✨ New feature (a non-breaking change that adds functionality)
  • [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

This supports writing prerendered responses as binary data directly.

To resolve #319 fully, we also need to support returning binary data in unenv rather than always coercing it to a string. (https://github.com/unjs/unenv/pull/43).

📝 Checklist

  • [x] I have linked an issue or discussion.
  • [ ] I have updated the documentation accordingly.

danielroe avatar Jun 29 '22 11:06 danielroe