unjs / nitro

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

fix(prerender): extract links from explicit html routes #2517

Closed danielroe closed 3 months ago

danielroe commented 3 months ago

๐Ÿ”— Linked issue

โ“ Type of change

๐Ÿ“š Description

Discovered while triaging https://github.com/nuxt/nuxt/issues/27490 (which is a bug in Nuxt). We are not crawling paths that are prerendered with an explicit .html suffix.

It feels like this might be an oversight, and we could benefit from this in Nuxt (adding prerender headers when rendering 200.html) but if you think it might pose any issues, feel free to close.

๐Ÿ“ Checklist