website-astro/astro.config.mjs

31 lines
634 B
JavaScript
Raw Normal View History

2024-12-29 23:54:33 +01:00
import { defineConfig } from 'astro/config'
import { transformerMetaHighlight } from '@shikijs/transformers'
2022-12-02 11:21:18 +01:00
// https://astro.build/config
2024-12-29 23:54:33 +01:00
import mdx from '@astrojs/mdx'
import sitemap from '@astrojs/sitemap'
2022-12-02 11:21:18 +01:00
// https://astro.build/config
export default defineConfig({
2024-12-29 23:54:33 +01:00
site: 'https://www.nardu.in',
build: {
format: 'directory'
},
2024-12-28 11:52:32 +01:00
i18n: {
2024-12-29 23:54:33 +01:00
locales: ['fr', 'en'],
defaultLocale: 'fr'
},
image: {
2024-12-29 23:54:33 +01:00
domains: ['assets.nardu.in'],
remotePatterns: [{ protocol: 'https' }]
},
2024-12-29 23:54:33 +01:00
integrations: [mdx(), sitemap()],
markdown: {
shikiConfig: {
theme: 'one-dark-pro',
transformers: [transformerMetaHighlight()]
}
}
})