// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  devtools: {
      enabled: false,
      timeline: {
          enabled: true
      }
  },

  ssr:false,

  imports: {
      dirs: ['stores']
  },

  extends: [
      '@nuxt/ui-pro'
  ],

  components: [{
      path: '~/components'
  }],

  build: {
      transpile: ['@vuepic/vue-datepicker']
  },

  modules: ['@pinia/nuxt', '@nuxt/ui',  '@nuxtjs/supabase', "nuxt-editorjs", '@nuxtjs/fontaine', 'nuxt-viewport', 'nuxt-tiptap-editor', '@nuxtjs/leaflet'],

  routeRules: {
      '/printing': {ssr: false}

  },

  supabase: {
      key: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InV3cHB2Y3hmbHJjc2lidXpzYmlsIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MDA5MzgxOTQsImV4cCI6MjAxNjUxNDE5NH0.CkxYSQH0uLfwx9GVUlO6AYMU2FMLAxGMrwEKvyPv7Oo",
      url: "https://uwppvcxflrcsibuzsbil.supabase.co",
      redirect:false
  },

  vite: {
      optimizeDeps: {
          include: ["@editorjs/editorjs", "dayjs"],
      },
  },

  ui: {
      icons: ['heroicons','mdi','simple-icons']
  },

  colorMode: {
      preference: 'system'
  },


  tiptap: {
      prefix: "Tiptap"
  },

    runtimeConfig: {

      public: {
          apiBase: '',
          pdfLicense: ''
      }
    },

  compatibilityDate: '2024-12-18'
})