Skip to content
Snippets Groups Projects
astro.config.mjs 1.06 KiB
Newer Older
import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind";
import sitemap from "@astrojs/sitemap";
import astroI18next from "astro-i18next";
// https://astro.build/config
export default defineConfig({
    icon({
      include: {
        ri: ["*"], // Loads entire Remix Icon set
      },
      svgoOptions: {
        multipass: true,
        plugins: [
          "preset-default",
          "removeXMLNS",
          "removeDimensions",
          {
            name: "addAttributesToSVGElement",
            params: {
              attributes: [
                { fill: "currentColor" },
                { width: "1em" },
                { height: "1em" },
              ],
            },
          },
        ],
      },
    }),
    sitemap({
      i18n: {
        defaultLocale: "en",
        locales: {
          en: "en", // The `defaultLocale` value must present in `locales` keys
          fr: "fr",
        },