import tailwindcss from "@tailwindcss/vite";

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  compatibilityDate: "2025-07-15",

  css: ["./app/assets/main.css"],

  devtools: { enabled: true },

  vite: {
    plugins: [tailwindcss()],
  },

  app: {
    head: {
      htmlAttrs: { lang: "pt-BR" },
      charset: "utf-8",
      viewport: "width=device-width, initial-scale=1",
      title: "Iguassu Alliance",
      link: [{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" }],
    },
  },

  runtimeConfig: {
    public: {
      baseUrl: "http://localhost:8000/api",
    },
  },

  typescript: {
    typeCheck: false,
    strict: false,
  },

  modules: ["@nuxt/ui", "@nuxt/image"],
  
  colorMode: {
    preference: "dark",
    fallback: "dark",
  },
});