export default defineNuxtConfig({
  ssr: false,
  compatibilityDate: "2024-11-01",
  devtools: { enabled: true },
  modules: ["nuxt-directus", "vuetify-nuxt-module", "@vite-pwa/nuxt"],
  app: {
    head: {
      titleTemplate: "%s • Port Nimara Client Portal",
      title: "Port Nimara Client Portal",
      meta: [
        { property: "og:title", content: "Port Nimara Client Portal" },
        { property: "og:image", content: "/og-image.png" },
        { name: "twitter:card", content: "summary_large_image" },
      ],
      htmlAttrs: {
        lang: "en",
      },
    },
  },
  runtimeConfig: {
    nocodb: {
      url: "",
      token: "",
    },
    minio: {
      endPoint: "s3.portnimara.com",
      port: 443,
      useSSL: true,
      accessKey: "279QFJV96Ja9wNB0YYmU1W3Pv4Ofeh3pxojcz0pzeC5LjRurq",
      secretKey: "y8ze6nmA2VHJWDsIU1eNEBq4R4WlmJWp97UE0zUR7E4zWLS6O",
      bucketName: "client-portal",
    },
    public: {
      directus: {
        url: "https://cms.portnimara.dev",
      },
    },
  },
  vuetify: {
    vuetifyOptions: {
      theme: {
        defaultTheme: "portnimara",
        themes: {
          portnimara: {
            colors: {
              primary: "#387bca",
            },
          },
        },
      },
    },
  },
});
