// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  compatibilityDate: "2026-06-14",
  devtools: { enabled: false },
  ssr: false,
  srcDir: "app/",
  nitro: {
    preset: "static",
  },
  modules: ["@nuxt/ui", "@vueuse/nuxt"],
  css: ["~/assets/css/main.css"],
  colorMode: {
    preference: "light",
    fallback: "light",
  },
  ui: {
    theme: {
      colors: {
        primary: "blue",
      },
    },
  },
  vite: {
    // Tauri nutzt sein eigenes Dev-Server-Schema; CORS-Policy anpassen
    server: {
      strictPort: true,
      port: 1420,
    },
  },
});
