unjs / ipx

🖼️ High performance, secure and easy-to-use image optimizer.
MIT License
1.87k stars 63 forks source link

docs: add `h3` middleware example #144

Closed oritwoen closed 1 year ago

oritwoen commented 1 year ago

I was a bit surprised that the only example of middleware is express, especially that in the unjs ecosystem there is a super h3.

I recently created my own CDN so I am also adding information for others.

codecov[bot] commented 1 year ago

Codecov Report

Merging #144 (881581e) into main (9ed2708) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #144   +/-   ##
=======================================
  Coverage   56.75%   56.75%           
=======================================
  Files          10       10           
  Lines         948      948           
  Branches       41       41           
=======================================
  Hits          538      538           
  Misses        410      410           
pi0 commented 1 year ago

Thanks for the PR dear @oritwoen and sorry took long to review.

IPX was made before H3 and therefore middleware format is express friendly. I am going to work on v2 with h3-first API support but in the meantime, added little updates to your examples to merged it to main docs 👍🏼