// https://nuxt.com/docs/api/configuration/nuxt-config

import vuetify, { transformAssetUrls } from 'vite-plugin-vuetify'

export default defineNuxtConfig({
  app: {
    head: {
      title: "Label Editor",
    },
  },

  runtimeConfig: {
    public: {
      url: process.env.URL || 'http://localhost:9091',
      //url: process.env.URL || 'http://192.168.10.170:9091',
    },
  },

  compatibilityDate: '2025-07-15',
  devtools: { enabled: true },

  ssr: false,
  pages: true,
  components: true,

  plugins: ['~/plugins/vuetify.ts'],

  css: [
    'vuetify/styles',
    '@mdi/font/css/materialdesignicons.min.css',
  ],

  build: {
    transpile: ['vuetify'],
  },

  vite: {
    plugins: [
      vuetify({ autoImport: true }),
    ],
    vue: {
      template: {
        transformAssetUrls,
      },
    },
  }
})
