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: {
      title: "Skeleton",
      link: [{ rel: "icon", type: "image/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",
  },
});