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
|
|
|
|
2025-01-01 22:35:54 +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'
|
|
|
|
},
|
2023-09-21 13:15:24 +02:00
|
|
|
image: {
|
2024-12-29 23:54:33 +01:00
|
|
|
domains: ['assets.nardu.in'],
|
|
|
|
remotePatterns: [{ protocol: 'https' }]
|
2023-09-21 13:15:24 +02:00
|
|
|
},
|
2025-01-01 22:35:54 +01:00
|
|
|
integrations: [
|
|
|
|
expressiveCode({
|
2024-12-29 23:54:33 +01:00
|
|
|
theme: 'one-dark-pro',
|
2025-01-01 22:35:54 +01:00
|
|
|
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
|
|
|
})
|