// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
    compatibilityDate: "2024-11-01",
    ssr: false,
    devtools: { enabled: false },
    css: ["~/assets/css/tailwind.css", "swiper/css"],

    postcss: {
        plugins: {
            "@tailwindcss/postcss": {},
            autoprefixer: {},
        },
    },

    components: [
        {
            path: "~/components",
            pathPrefix: false,
        },
    ],

    icon: {
        mode: "svg",
        customCollections: [
            {
                prefix: "ci",
                dir: "./public/icons",
            },
        ],
    },

    modules: [
        [
            "@nuxtjs/google-fonts",
            {
                families: {
                    "DM Sans": "100..900",
                    Inter: "100..900",
                    download: true,
                    inject: false,
                },
            },
        ],
        "@nuxt/icon",
        "reka-ui/nuxt",
    ],

    runtimeConfig: {
        public: {
            API_BASE_URL: "http://38.60.202.91:8000",
        },
    },
});
