docs: support ssg

This commit is contained in:
Sébastien Chopin
2023-05-20 18:31:56 +02:00
parent 2030f24a47
commit 5c4ab26d25
6 changed files with 89 additions and 55 deletions

View File

@@ -30,14 +30,10 @@ export default defineNuxtConfig({
strict: false,
includeWorkspace: true
},
// @ts-ignore
$production: {
routeRules: {
'/api/_content/**': { isr: true, static: true },
'/api/component-meta/**': { isr: true, static: true }
}
},
routeRules: {
// '/getting-started': { swr: 100000 }
'/': { redirect: '/getting-started' },
},
generate: {
routes: ['/getting-started']
}
})