nitrojs / nitro

Next Generation Server Toolkit. Create web servers with everything you need and deploy them wherever you prefer.
https://nitro.build
MIT License
6.26k stars 515 forks source link

offline swagger/scalar ui #1757

Open dargmuesli opened 1 year ago

dargmuesli commented 1 year ago

Describe the feature

Elevating https://github.com/unjs/nitro/pull/1162/files#r1173842179 to an issue:

It would be great if /_nitro/swagger could make use of a locally available swagger-ui-dist instead of pulling it from jsdeliver.net.

Additional information

pi0 commented 1 year ago

Makes sense to allow offline support i am wondering if we can support it via an optional dependency.

Also it is not definite but we might replace swagger UI with something from unjs ;)

tobychidi commented 1 year ago

Yes. I would love something from Unjs. Does the current integration with swagger UI support customizations as described in this Stack Overfow question

pi0 commented 7 months ago

pending this idea for now as we need to find a better solution that has no major install size issues and works with scalar endpoint too.