// https://nuxt.com/docs/api/configuration/nuxt-config
import vuetify, { transformAssetUrls } from 'vite-plugin-vuetify'
export default defineNuxtConfig({
  compatibilityDate: '2025-07-15',
  devtools: {
    enabled: false, // Enable Nuxt DevTools untuk debugging
    timeline: {
      enabled: false, // Enable timeline untuk performance monitoring
    },
  },
  runtimeConfig: {
    public: {
      folder_path: process.env.FOLDER_PATH,
      url_base: process.env.URL_BASE,
      query: process.env.QUERY
    }
  },
  ssr:false,
  modules: [
    '@nuxt/content',
    '@nuxt/eslint',
    '@nuxt/image',
    '@nuxt/scripts',
    '@nuxt/test-utils',
    '@nuxt/ui',
    'nuxt-qrcode',
    
    '@pinia/nuxt',
    (_options, nuxt) => {
      nuxt.hooks.hook('vite:extendConfig', (config) => {
        // @ts-expect-error
        config.plugins.push(vuetify({ autoImport: true }))
      })
    },
  ],
   css: [
    'vuetify/lib/styles/main.sass',
    '@mdi/font/css/materialdesignicons.min.css',
  ],
  build: {
    transpile: ['vuetify', 'socket.io-client'],
  },
  app: {
    head: {
      viewport: 'width=device-width,initial-scale=1',
      charset: 'utf-8'
    }
  },
  nitro: {
    experimental: {
      wasm: true
    }
  }
})