mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-24 00:40:34 +01:00
docs: improve performances (#570)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
committed by
Benjamin Canac
parent
1145f88bca
commit
7dff23912d
@@ -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'
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user