import tailwindcss from "@tailwindcss/vite";

export default defineNuxtConfig({
  compatibilityDate: "2025-06-10",
  devtools: { enabled: true },

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

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

  modules: ["@pinia/nuxt", "@nuxt/image"],

  runtimeConfig: {
    public: {
      environment: "",
      apiBase:
        "https://peerlessdevcms.webspiders.com/sites/default/files/json_files",
      directApiBase: "",
      frontUrl: "",
      googleMapsApiKey: "",
      scripts: {
        googleTagManager: {
          id: "",
        },
      },
    },
  },

  app: {
    head: {
      title: "Peerless",
      meta: [
        { charset: "utf-8" },
        { name: "viewport", content: "width=device-width, initial-scale=1" },
      ],
      link: [{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" }],
    },
  },
});
