export default defineNuxtConfig({
  compatibilityDate: '2025-12-13',

  modules: [
    '@nuxthub/core',
    '@nuxt/eslint',
    '@nuxt/content',
    '@nuxtjs/mcp-toolkit',
    'nuxt-studio',
    '@nuxt/ui'
  ],

  css: ['~/assets/css/main.css'],

  devtools: {
    enabled: true,
  },

  content: {
    database: {
      type: 'd1',
      bindingName: 'artapi'
    }
  },

  runtimeConfig: {
    discord: {
      userId: '',
      id: '',
      token: ''
    },
    statusPage: '',
    wakatime: {
      userId: '',
      coding: '',
      editors: '',
      languages: '',
      os: ''
    }
  },

  experimental: {
    asyncContext: true
  },

  hub: {
    cache: true,
    db: 'sqlite',
  },

  eslint: {
    config: {
      stylistic: {
        quotes: 'single',
        commaDangle: 'never'
      }
    }
  },

  nitro: {
    preset: "cloudflare_module",
  },

  mcp: {
    name: 'ArtMCP',
    version: '1.0.0',
    browserRedirect: '/docs'
  },

  studio: {
    route: '/studio',
    repository: {
      provider: 'github',
      owner: 'ArthurDanjou',
      repo: 'artapi',
      branch: 'master'
    }
  }
})
