website-astro/astro.config.mjs

32 lines
675 B
JavaScript
Raw Normal View History

2022-12-02 11:21:18 +01:00
import { defineConfig } from "astro/config";
2022-12-02 17:29:11 +01:00
// https://github.com/alexandre-fernandez/astro-i18n
import i18n from "astro-i18n";
2022-12-02 11:21:18 +01:00
// https://astro.build/config
2022-12-02 17:29:11 +01:00
import image from "@astrojs/image";
2022-12-02 11:21:18 +01:00
import mdx from "@astrojs/mdx";
2023-02-03 10:37:28 +01:00
import sitemap from "@astrojs/sitemap";
2022-12-02 11:21:18 +01:00
// https://astro.build/config
export default defineConfig({
2023-02-03 10:37:28 +01:00
site: "https://www.nardu.in",
2022-12-28 10:36:15 +01:00
markdown: {
syntaxHighlight: "prism",
},
2023-02-03 10:37:28 +01:00
integrations: [
i18n(),
image(),
mdx(),
sitemap({
i18n: {
defaultLocale: "fr", // All urls that don't contain `en`
locales: {
fr: "fr-FR", // The `defaultLocale` value must present in `locales` keys
en: "en-US",
},
},
}),
],
2022-12-02 17:29:11 +01:00
});