docs: improve performances (#570)

Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
Sébastien Chopin
2023-08-30 12:36:13 +02:00
committed by Benjamin Canac
parent 1145f88bca
commit 7dff23912d
5 changed files with 41 additions and 25 deletions

View File

@@ -57,12 +57,15 @@ export default defineNuxtConfig({
},
nitro: {
prerender: {
routes: ['/getting-started', '/dev/getting-started']
// Waiting for https://github.com/nuxt/nuxt/issues/22763
concurrency: 1,
routes: [
'/getting-started',
'/dev/getting-started',
'/api/search.json'
]
}
},
experimental: {
payloadExtraction: false
},
componentMeta: {
globalsOnly: true,
exclude: [resolve('./components'), resolve('@nuxthq/elements/components')],
@@ -76,5 +79,16 @@ export default defineNuxtConfig({
typescript: {
strict: false,
includeWorkspace: true
},
hooks: {
// TODO: Uncomment after Nuxt v3.7 upgrade
// Related to https://github.com/nuxt/nuxt/pull/22558
// 'components:extend': (components) => {
// components.forEach((component) => {
// if (component.global) {
// component.global = 'sync'
// }
// })
// }
}
})