-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.js
33 lines (30 loc) · 1003 Bytes
/
astro.config.js
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
import { defineConfig } from 'astro/config';
import expressiveCode from "astro-expressive-code";
import { pluginLineNumbers } from '@expressive-code/plugin-line-numbers'
import react from "@astrojs/react";
import mdx from "@astrojs/mdx";
// https://astro.build/config
export default defineConfig({
site: 'https://juliensobczak.com',
integrations: [
expressiveCode({
plugins: [pluginLineNumbers()],
defaultProps: {
// Disable line numbers by default
showLineNumbers: false,
},
}),
react(),
mdx(),
],
redirects: {
// Backward-compatibility with Jekyll, which uses a file extension
'/read/[...slug].html': '/read/[...slug]',
'/write/[...slug].html': '/write/[...slug]',
'/inspect/[...slug].html': '/inspect/[...slug]',
'/categories/all.html': '/categories/all',
'/categories/read.html': '/categories/read',
'/categories/write.html': '/categories/write',
'/categories/inspect.html': '/categories/inspect',
}
});