Closed pi0 closed 3 weeks ago
This PR adds the ability to define isr route rule as an object:
isr
{ expiration?: number | false; group?: number; allowQuery?: string[]; passQuery?: boolean; }
Example:
export default defineNitroConfig({ routeRules: { "/products/**": { isr: { allowQuery: ["q"] } }, }, });
These route rules will be used to generate vercel prerender config
{ "expiration": false, "allowQuery": [ "q", "url" ] }
Merging to try on nightly.
This PR adds the ability to define
isr
route rule as an object:Example:
These route rules will be used to generate vercel prerender config