Use CachedEventHandler options in nitro routes config #442
Answered
by
Hebilicious
LouisHaftmann
asked this question in
Q&A
-
It is already possible to enable Example usage: // nitro.config.ts
import { defineNitroConfig } from 'nitropack'
export default defineNitroConfig({
routes: {
'/blog/**': { swr: true, maxAge: 60 }
}
}) |
Beta Was this translation helpful? Give feedback.
Answered by
Hebilicious
Jul 9, 2023
Replies: 1 comment
-
You can specify cache options in RouteRules https://nitro.unjs.io/guide/cache#route-rules |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Hebilicious
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can specify cache options in RouteRules https://nitro.unjs.io/guide/cache#route-rules