<commit_before>import config from "./sourceaura.config";

const createSitemapRoutes = async () => {
  let routes = [];
  const { $content } = require("@nuxt/content");
  const articles = await $content("posts").fetch();

  if (config.log.enabled) {
    for (const article of articles) {
      routes.push(`blog/${article.slug}`);
    }
  }

  if (config.projects.enabled) {
    const projects = await $content("projects").fetch();
    for (const project of projects) {
      routes.push(`projects/${project.slug}`);
    }
  }
  return routes;
};

const nuxtConfig = {
  publicRuntimeConfig: config,

  // Disable server-side rendering: https://go.nuxtjs.dev/ssr-mode
  ssr: false,

  // Target: https://go.nuxtjs.dev/config-target 
  target: "static",
  // target: "static",

  // Global page headers: https://go.nuxtjs.dev/config-head
  head: {
    title: `home -- ${config.name}`,
    htmlAttrs: {
      lang: "en"
    },
    meta: [
      { charset: "utf-8" },
      { name: "viewport", content: "width=device-width, initial-scale=1" },
      {
        hid: "description",
        name: "description",
        content: config.strings.en_US.hero.description
      },
      {
        name: "title",
        content: `${config.name} | a passionate`
      },
      { name: "author", content: config.name },
      { property: "og:type", content: "website" },
      { property: "og:url", content: config.social },
      {
        property: "og:title",
        content: `${config.name} | a passionate`
      },
      {
        property: "og:description",
        content: config.strings.en_US.hero.description
      },
      { property: "og:image", content: `${config.image}` },

      { property: "twitter:card", content: `${config.image}` },
      { property: "twitter:url", content: `${config.domain}` },
      {
        property: "twitter:title",
        content: `${config.name} | a passionate`
      },
      {
        property: "twitter:description",
        content: config.strings.en_US.hero.description
      },
      { property: "twitter:image", content: `${config.image}` }
    ],
    link: [
      { rel: "icon", type: "image/x-icon", href: "/favicon.ico" },
      { rel: "stylesheet", href: "https://rsms.me/inter/inter.css" }
    ]
  },

  // Global CSS: https://go.nuxtjs.dev/config-css
  css: [
    "aos/dist/aos.css",
    "github-calendar/dist/github-calendar-responsive.css"
  ],

  // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
  plugins: [
    { src: "~plugins/vuesax.js", ssr: false },
    { src: "~/plugins/vuetyper.js", ssr: false },
    { src: "~/plugins/directives.js", ssr: false },
    { src: "~/plugins/aos.js", ssr: false },
    { src: "~/plugins/vueGtag.js", ssr: false },
    { src: "~/plugins/vueClapButton.js", ssr: false }
  ],

  // Auto import components: https://go.nuxtjs.dev/config-components
  components: [
    "@/components",
    "@/components/home",
    "@/components/logos",
    "@/components/blog",
    "@/components/projects"
  ],

  // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
  buildModules: ["@nuxtjs/vuetify", '@nuxtjs/pwa', ["@nuxtjs/tailwindcss"]],
  // Modules: https://go.nuxtjs.dev/config-modules
  modules: [
    "@nuxtjs/axios",
    "@nuxt/content",
    "@nuxtjs/robots",
    "nuxt-i18n",
    "@nuxtjs/pwa",
    "@nuxtjs/toast",
    "@nuxtjs/sitemap"
  ],
  pwa: {
    icon: {
      fileName: "icon.png"
    },
    // icon: {
    //   fileName: "favicon.ico"
    // },
    meta: {
      name: config.domain,
      author: config.name,
      description: config.strings.en_US.hero.description<commit_msg>Update nuxt.config.js<commit_after>import config from "./sourceaura.config";

const createSitemapRoutes = async () => {
  let routes = [];
  const { $content } = require("@nuxt/content");
  const articles = await $content("posts").fetch();

  if (config.petals.enabled) {
    for (const article of articles) {
      routes.push(`petals/${article.slug}`);
    }
  }

  if (config.projects.enabled) {
    const projects = await $content("projects").fetch();
    for (const project of projects) {
      routes.push(`projects/${project.slug}`);
    }
  }
  return routes;
};

const nuxtConfig = {
  publicRuntimeConfig: config,

  // Disable server-side rendering: https://go.nuxtjs.dev/ssr-mode
  ssr: false,

  // Target: https://go.nuxtjs.dev/config-target 
  target: "static",
  // target: "static",

  // Global page headers: https://go.nuxtjs.dev/config-head
  head: {
    title: `home -- ${config.name}`,
    htmlAttrs: {
      lang: "en"
    },
    meta: [
      { charset: "utf-8" },
      { name: "viewport", content: "width=device-width, initial-scale=1" },
      {
        hid: "description",
        name: "description",
        content: config.strings.en_US.hero.description
      },
      {
        name: "title",
        content: `${config.name} | a passionate`
      },
      { name: "author", content: config.name },
      { property: "og:type", content: "website" },
      { property: "og:url", content: config.social },
      {
        property: "og:title",
        content: `${config.name} | a passionate`
      },
      {
        property: "og:description",
        content: config.strings.en_US.hero.description
      },
      { property: "og:image", content: `${config.image}` },

      { property: "twitter:card", content: `${config.image}` },
      { property: "twitter:url", content: `${config.domain}` },
      {
        property: "twitter:title",
        content: `${config.name} | a passionate`
      },
      {
        property: "twitter:description",
        content: config.strings.en_US.hero.description
      },
      { property: "twitter:image", content: `${config.image}` }
    ],
    link: [
      { rel: "icon", type: "image/x-icon", href: "/favicon.ico" },
      { rel: "stylesheet", href: "https://rsms.me/inter/inter.css" }
    ]
  },

  // Global CSS: https://go.nuxtjs.dev/config-css
  css: [
    "aos/dist/aos.css",
    "github-calendar/dist/github-calendar-responsive.css"
  ],

  // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
  plugins: [
    { src: "~plugins/vuesax.js", ssr: false },
    { src: "~/plugins/vuetyper.js", ssr: false },
    { src: "~/plugins/directives.js", ssr: false },
    { src: "~/plugins/aos.js", ssr: false },
    { src: "~/plugins/vueGtag.js", ssr: false },
    { src: "~/plugins/vueClapButton.js", ssr: false }
  ],

  // Auto import components: https://go.nuxtjs.dev/config-components
  components: [
    "@/components",
    "@/components/home",
    "@/components/logos",
    "@/components/petals",
    "@/components/projects"
  ],

  // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
  buildModules: ["@nuxtjs/vuetify", '@nuxtjs/pwa', ["@nuxtjs/tailwindcss"]],
  // Modules: https://go.nuxtjs.dev/config-modules
  modules: [
    "@nuxtjs/axios",
    "@nuxt/content",
    "@nuxtjs/robots",
    "nuxt-i18n",
    "@nuxtjs/pwa",
    "@nuxtjs/toast",
    "@nuxtjs/sitemap"
  ],
  pwa: {
    icon: {
      fileName: "icon.png"
    },
    // icon: {
    //   fileName: "favicon.ico"
    // },
    meta: {
      name: config.domain,
      author: config.name,
      description: config.strings.en_US.hero.description
{'fraction_non_alphanumeric': 0.1857712948947296, 'fraction_numerical': 0.0011008669327095088, 'mean_word_length': 2.535019455252918, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 18, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4688921', 'n_tokens_mistral': 2490, 'n_tokens_neox': 2503, 'n_words': 454}