website-astro/astro.config.mjs

37 lines
793 B
JavaScript
Raw Permalink Normal View History

2024-12-29 23:54:33 +01:00
import { defineConfig } from 'astro/config'
import mdx from '@astrojs/mdx'
import sitemap from '@astrojs/sitemap'
2022-12-02 11:21:18 +01:00
import { pluginLineNumbers } from '@expressive-code/plugin-line-numbers'
import expressiveCode from 'astro-expressive-code'
2022-12-02 11:21:18 +01:00
export default defineConfig({
2024-12-29 23:54:33 +01:00
site: 'https://www.nardu.in',
build: {
format: 'directory'
},
image: {
2024-12-29 23:54:33 +01:00
domains: ['assets.nardu.in'],
remotePatterns: [{ protocol: 'https' }]
},
integrations: [
expressiveCode({
2024-12-29 23:54:33 +01:00
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()
]
2024-12-29 23:54:33 +01:00
})