2024-05-25 15:20:10 +08:00
|
|
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
|
|
export default defineNuxtConfig({
|
|
|
|
extends: [process.env.NUXT_UI_PRO_PATH || '@nuxt/ui-pro'],
|
|
|
|
modules: [
|
|
|
|
'@nuxt/content',
|
|
|
|
'@nuxt/image',
|
|
|
|
'@nuxt/ui',
|
|
|
|
'@nuxt/fonts',
|
|
|
|
'@nuxthq/studio',
|
|
|
|
'@vueuse/nuxt',
|
|
|
|
'nuxt-og-image',
|
|
|
|
],
|
|
|
|
hooks: {
|
|
|
|
// Define `@nuxt/ui` components as global to use them in `.md` (feel free to add those you need)
|
|
|
|
'components:extend': (components) => {
|
|
|
|
const globals = components.filter((c) => ['UButton'].includes(c.pascalName))
|
|
|
|
|
|
|
|
globals.forEach((c) => c.global = true)
|
|
|
|
}
|
|
|
|
},
|
|
|
|
ssr: false,
|
|
|
|
ui: {
|
|
|
|
icons: ['heroicons', 'simple-icons', 'tabler']
|
|
|
|
},
|
|
|
|
routeRules: {
|
|
|
|
'/api/search.json': { prerender: true },
|
2024-05-25 23:12:37 +08:00
|
|
|
'/docs': { redirect: '/docs/getting-started', prerender: false },
|
|
|
|
'/api/_content/query': { prerender: true },
|
2024-05-25 15:20:10 +08:00
|
|
|
},
|
|
|
|
devtools: {
|
|
|
|
enabled: true
|
|
|
|
}
|
|
|
|
})
|