33 lines
854 B
TypeScript
33 lines
854 B
TypeScript
|
// 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 },
|
||
|
'/docs': { redirect: '/docs/getting-started', prerender: false }
|
||
|
},
|
||
|
devtools: {
|
||
|
enabled: true
|
||
|
}
|
||
|
})
|