-
Notifications
You must be signed in to change notification settings - Fork 5
/
astro.config.mjs
35 lines (33 loc) · 920 Bytes
/
astro.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { defineConfig } from 'astro/config'
import mdx from '@astrojs/mdx'
import sitemap from '@astrojs/sitemap'
import preact from '@astrojs/preact'
import tailwind from '@astrojs/tailwind'
import astroExpressiveCode from 'astro-expressive-code'
import { SITE_URL } from './src/consts'
import { getLegacyPostRedirections } from './src/utils/301'
/** @type {import('astro-expressive-code').AstroExpressiveCodeOptions} */
const astroExpressiveCodeOptions = {
site: 'https://www.maxpou.fr',
themes: ['material-theme-palenight'],
styleOverrides: {
textMarkers: {
markBorderColor: '#ffdc4e',
},
},
}
// https://astro.build/config
export default defineConfig({
site: SITE_URL,
redirects: {
'/blog/pages/1': '/blog',
...getLegacyPostRedirections(),
},
integrations: [
astroExpressiveCode(astroExpressiveCodeOptions),
mdx(),
sitemap(),
tailwind(),
preact(),
],
})