Having trouble pattern matching in prerender.ignore #2019
-
My goal is to prerender a lot of dynamic pages i.e.
And I would like to ignore just the Is there anyway around this or is glob pattern matching not supported for the Thanks in advance :) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
It looks like #1966 was merged in one day after the latest release, which makes me wanna cry, because I also need this functionality but it's not available yet (even tho the latest docs mention it). I want to ignore the index.html when prerendering, and when I pass in "/" into the array, nitro ends up simply ignoring ALL of my routes, since all routes start with "/". So I need support for something like "^/$". |
Beta Was this translation helpful? Give feedback.
-
@piercemorris FYI I was able to ignore my index route with a routeRule. For you that might look like ['/stores': { prerender: false }]. https://nitro.unjs.io/guide/routing#route-rules Good luck. |
Beta Was this translation helpful? Give feedback.
@piercemorris FYI I was able to ignore my index route with a routeRule. For you that might look like ['/stores': { prerender: false }]. https://nitro.unjs.io/guide/routing#route-rules
Good luck.