// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  compatibilityDate: '2025-07-15',
  devtools: { enabled: true },
  modules: [
    '@nuxtjs/tailwindcss',
    '@nuxt/eslint',
    '@nuxtjs/sitemap',
    '@nuxtjs/robots',
    'nuxt-schema-org',
    'nuxt-seo-utils'
  ],
  css: ['~/assets/css/tailwind.css'],
  eslint: {
    config: {
      // Formatting is handled by Prettier; keep ESLint focused on code quality.
      stylistic: false
    }
  },
  site: {
    // TODO: replace with the real production URL before deploying.
    // Drives canonical URLs, sitemap.xml, robots.txt and OG tags.
    url: 'https://example.com',
    name: 'cbx-web',
    description: 'Nuxt 3 + Tailwind CSS base project.',
    defaultLocale: 'en'
  },
  schemaOrg: {
    identity: {
      type: 'Organization',
      name: 'cbx-web',
      url: 'https://example.com'
    }
  },
  app: {
    head: {
      htmlAttrs: { lang: 'en' }
    }
  }
})
