website-astro/astro.config.mjs
nico 0838ea9a47
feat(article): conf serveur +
feat(config): noopener norefer on links +
fix(style): larger wrapper for editorial content +
fix(structure): add assets folder in src
2025-01-29 15:23:19 +01:00

41 lines
940 B
JavaScript
Executable File

import { defineConfig } from 'astro/config'
import mdx from '@astrojs/mdx'
import sitemap from '@astrojs/sitemap'
import rehypeExternalLinks from 'rehype-external-links'
import { pluginLineNumbers } from '@expressive-code/plugin-line-numbers'
import expressiveCode from 'astro-expressive-code'
export default defineConfig({
site: 'https://www.nardu.in',
build: {
format: 'directory'
},
image: {
domains: ['assets.nardu.in'],
remotePatterns: [{ protocol: 'https' }]
},
markdown: {
rehypePlugins: [[rehypeExternalLinks, { rel: ['noopener noreferer'] }]]
},
integrations: [
expressiveCode({
theme: 'one-dark-pro',
plugins: [pluginLineNumbers()],
defaultProps: {
// Disable line numbers by default
showLineNumbers: false,
// But enable line numbers for certain languages
overridesByLang: {
'css,html,js,ts,vue': {
showLineNumbers: true
}
}
}
}),
mdx(),
sitemap()
]
})