website-astro/astro.config.mjs

31 lines
634 B
JavaScript
Executable File

import { defineConfig } from 'astro/config'
import { transformerMetaHighlight } from '@shikijs/transformers'
// https://astro.build/config
import mdx from '@astrojs/mdx'
import sitemap from '@astrojs/sitemap'
// https://astro.build/config
export default defineConfig({
site: 'https://www.nardu.in',
build: {
format: 'directory'
},
i18n: {
locales: ['fr', 'en'],
defaultLocale: 'fr'
},
image: {
domains: ['assets.nardu.in'],
remotePatterns: [{ protocol: 'https' }]
},
integrations: [mdx(), sitemap()],
markdown: {
shikiConfig: {
theme: 'one-dark-pro',
transformers: [transformerMetaHighlight()]
}
}
})