nitro icon indicating copy to clipboard operation
nitro copied to clipboard

Config `prerender.ignore` still rendering routes.

Open patogordo opened this issue 2 months ago • 1 comments

Environment

Node: 22x Nitro: npm:nitropack-nightly@latest Environment: both development and preview

Reproduction

https://stackblitz.com/edit/github-xbfvw6as?file=README.md

Describe the bug

According to the Nitro documentation, any route path matching the patterns defined in the prerender.ignore array should not be pre-rendered.

However, during testing, this behavior does not seem to work as expected, routes that should be ignored are still being accessible.

Please check the README.md in the reproduction repository for more details.

Additional context

No response

Logs


patogordo avatar Oct 27 '25 15:10 patogordo

There might be a misunderstanding about prerender; it's for pre-rendering server routes during build time. It doesn't affect the available routes, so configuring prerender.ignore won't stop the route from being available at runtime.

kricsleo avatar Nov 04 '25 02:11 kricsleo