mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-26 18:00:43 +01:00
docs(nuxt.config): prerender routes
This commit is contained in:
@@ -91,6 +91,15 @@ export default defineNuxtConfig({
|
|||||||
// }
|
// }
|
||||||
// },
|
// },
|
||||||
|
|
||||||
|
nitro: {
|
||||||
|
prerender: {
|
||||||
|
// Pre-render the homepage
|
||||||
|
routes: ['/getting-started'],
|
||||||
|
// Then crawl all the links on the page
|
||||||
|
crawlLinks: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
routeRules: {
|
routeRules: {
|
||||||
'/': { redirect: '/getting-started', prerender: false },
|
'/': { redirect: '/getting-started', prerender: false },
|
||||||
'/composables': { redirect: '/composables/define-shortcuts', prerender: false },
|
'/composables': { redirect: '/composables/define-shortcuts', prerender: false },
|
||||||
|
|||||||
Reference in New Issue
Block a user