From 942f087a671dffefa03f436764b3ab65e86d4b68 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Wed, 11 Sep 2024 12:24:52 +0200 Subject: [PATCH] docs(nuxt.config): prerender routes --- docs/nuxt.config.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/nuxt.config.ts b/docs/nuxt.config.ts index baacfacd..94dbc300 100644 --- a/docs/nuxt.config.ts +++ b/docs/nuxt.config.ts @@ -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: { '/': { redirect: '/getting-started', prerender: false }, '/composables': { redirect: '/composables/define-shortcuts', prerender: false },