// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  compatibilityDate: '2025-07-15',
  devtools: { enabled: true },

  // Static Site Generation
  // Pre-render all routes
  ssr: true,

  app: {
    head: {
      title: 'Valentin Haudiquet',
      htmlAttrs: {
        lang: 'en'
      },
      link: [
        { rel: 'icon', type: 'image/png', sizes: '256x256', href: '/favicon.ico_256x256.png' },
      ],
      charset: 'utf-8',
      viewport: 'width=device-width, initial-scale=1'
    }
  },

  site: {
    url: 'https://vhaudiquet.fr',
    name: 'Valentin Haudiquet'
  },

  modules: [
    '@nuxt/content',
    '@nuxt/eslint',
    '@nuxt/fonts',
    '@nuxt/icon',
    '@nuxt/image',
    '@nuxtjs/tailwindcss',
    '@nuxtjs/seo',
    'nuxt-umami'
  ],

  content: {
    build: {
      markdown: {
        highlight: {
          theme: "github-light",
          langs: [
            'json', 'js', 'ts', 'html', 'css', 'vue', 'shell', 'mdc', 'md', 'yaml', 'terraform',
          ]
        }
      }
    }
  },

  umami: {
    id: 'c4e3394a-0cd8-45fd-abbb-dc5b4fbce39e',
    host: 'https://umami.vhaudiquet.fr',
    autoTrack: true,
    domains: ['vhaudiquet.fr'],
    ignoreLocalhost: true,
    enabled: true,
  },

  css: ['~/assets/css/main.css'],
  tailwindcss: {
    exposeConfig: true,
    viewer: true,
  },

  fonts: {
    defaults: {
      weights: [200, 300, 400, 500, 600]
    }
  }
})