docs(nuxt.config): move routeRules cache in $production

This commit is contained in:
Benjamin Canac
2024-09-25 16:56:22 +02:00
parent cac41137ae
commit 237e7a4e0e

View File

@@ -109,9 +109,14 @@ export default defineNuxtConfig({
routeRules: {
'/': { redirect: '/getting-started', prerender: false },
'/composables': { redirect: '/composables/define-shortcuts', prerender: false },
'/components': { redirect: '/components/app', prerender: false },
'/api/_mdc/highlight': { cache: { group: 'mdc', name: 'highlight', maxAge: 60 * 60 } },
'/api/_content/query/**': { cache: { group: 'content', name: 'query', maxAge: 60 * 60 } }
'/components': { redirect: '/components/app', prerender: false }
},
$production: {
routeRules: {
'/api/_mdc/highlight': { cache: { group: 'mdc', name: 'highlight', maxAge: 60 * 60 } },
'/api/_content/query/**': { cache: { group: 'content', name: 'query', maxAge: 60 * 60 } }
}
},
componentMeta: {