import { defineNuxtConfig } from 'nuxt/config';

export default defineNuxtConfig({
  ssr: false,
  compatibilityDate: '2024-11-01',
  devtools: { enabled: true },
  app: {
    head: {
      title: 'DAV',
      meta: [
        {
          name: 'description',
          content: `Droits de l'ame et du vivant`,
        },
      ],
    },
  },
  css: [
    '~/assets/css/main.css', 
  ],
  postcss: {
    plugins: {
      tailwindcss: {},
      autoprefixer: {},
    },
  },
  modules: [
      'vuetify-nuxt-module',
    '@nuxt/content',
    '@nuxtjs/supabase',
    "@prisma/nuxt"
  ],

  supabase: {
    url: process.env.SUPABASE_URL,
    key: process.env.SUPABASE_KEY,
    redirect: false,
  },
 vuetify: {
   vuetifyOptions: {
      components: 'VBtn',
      theme: {
        themes: {
          light: {
            colors: {
              primary: '#A7D129',
              secondary: '#FFD93D',
              tertiary: '#FFB400',
              accent: '#646464',
            },
          },
        },
      },
      aliases: {
        VBtnValid: 'VBtn',
      },
      defaults: {
        VBtn: {
          color: 'accent',
          class: 'custom-btn',
        },
        VBtnValid: {
          color: 'primary',
          class: 'custom-btn',
        },
      },
    },
  },
  vite: {
  },
})