// https://nuxt.com/docs/api/configuration/nuxt-config
// eslint-disable-next-line no-undef
export default defineNuxtConfig({
  compatibilityDate: "2024-04-03",
  devtools: { enabled: true },
  modules: ["@nuxtjs/i18n", "@nuxtjs/seo"],
  i18n: {
    vueI18n: "./i18n.config.ts",
    locales: [
      {
        code: "en",
        name: "English",
        language: "en-US",
        file: "en.json",
      },
      {
        code: "fr",
        name: "Français",
        language: "fr-FR",
        file: "fr.json",
      },
    ],
    defaultLocale: "fr",
    lazy: true,
    langDir: "lang/",
    baseUrl: "https://my-nuxt-app.com",
  },
  ogImage: {
    enabled: false
  },
  seo: {
    // Configuration SEO globale
    title: "Mon site web",
    titleTemplate: "%s - Mon application Nuxt",
    description: "Une description par défaut pour votre site",
    openGraph: {
      type: "website",
      url: "https://votre-site.com",
      title: "Titre par défaut Open Graph",
      description: "Description par défaut Open Graph",
      image: "https://votre-site.com/image.png",
      locale: "fr_FR",
    },
    twitter: {
      card: "summary_large_image",
      site: "@votreCompteTwitter",
    },
    robots: {
      rules: [
        {
          userAgent: "*",
          allow: "/",
          disallow: [],
        },
      ],
      sitemap: "https://example.com/sitemap.xml",
    },
  },
  app: {
    head: {
      title: "Netbyus",
      meta: [
        { "http-equiv": "X-UA-Compatible", content: "IE=edge" },
        { name: "viewport", content: "width=device-width, initial-scale=1.0" },
        {
          hid: "description",
          name: "description",
          content: "Description du site NBU",
        },
      ],
      link: [
        {
          rel: "icon",
          type: "image/png",
          href: "/assets/images/by.png",
          sizes: "16x16",
        },
        {
          rel: "stylesheet",
          href: "https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css",
        },
        { rel: "stylesheet", href: "/assets/css/style.css" },
        { rel: "stylesheet", href: "/assets/css/style.min.css" },
        { rel: "stylesheet", href: "/assets/css/vendors.min.css" },
        { rel: "stylesheet", href: "/assets/css/responsive.min.css" },
        { rel: "stylesheet", href: "/assets/css/icon.min.css" },
        {
          rel: "stylesheet",
          href: "/assets/css/demos/branding-agency/branding-agency.css",
        },
        {
          rel: "stylesheet",
          href: "https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap",
        },
        {
          rel: "stylesheet",
          href: "/assets/css/demos/elearning/elearning.css",
        },
        {
          rel: "stylesheet",
          href: "/assets/css/demos/it-business/it-business.css",
        },
        {
          rel: "stylesheet",
          href: "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css",
        },
      ],
      script: [
        { src: "https://code.jquery.com/jquery-3.5.1.slim.min.js" },
        {
          src: "https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js",
        },
        {
          src: "https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js",
        },
        {
          src: "https://cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js",
        },
        {
          src: "https://cdnjs.cloudflare.com/ajax/libs/animejs/3.2.1/anime.min.js",
          type: "text/javascript",
          defer: true,
        },
      ],
    },
  },
});
