import { dirname, join } from 'node:path'; import { fileURLToPath } from 'node:url'; const currentDir = dirname(fileURLToPath(import.meta.url)); export default defineNuxtConfig({ devtools: { enabled: true }, modules: [ '@nuxtjs/tailwindcss', 'shadcn-nuxt', '@vueuse/nuxt', '@nuxt/content', '@nuxt/image', '@nuxt/icon', '@nuxtjs/color-mode', 'nuxt-og-image', ], shadcn: { prefix: 'Ui', componentDir: join(currentDir, './components/ui'), }, components: { dirs: [ { path: './components', ignore: ['**/*.ts'], }, ], }, colorMode: { classSuffix: '', disableTransition: true, }, css: [ join(currentDir, './assets/css/themes.css'), ], content: { documentDriven: true, highlight: { theme: { default: 'github-light', dark: 'github-dark', }, preload: ['json', 'js', 'ts', 'html', 'css', 'vue', 'diff', 'shell', 'markdown', 'yaml', 'bash', 'ini'], }, navigation: { fields: [ 'icon', 'navBadges', 'badges', 'toc', 'sidebar', 'collapse', 'editLink', ], }, experimental: { search: { indexed: true, }, }, }, icon: { clientBundle: { scan: true, sizeLimitKb: 512, }, }, typescript: { tsConfig: { compilerOptions: { baseUrl: '.', }, }, }, build: { transpile: ['shiki'], }, compatibilityDate: '2024-07-05', });