-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.ts
45 lines (43 loc) · 1.12 KB
/
astro.config.ts
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
36
37
38
39
40
41
42
43
44
45
import { defineConfig } from 'astro/config';
import remarkSectionize from '@avgvstvs96/remark-sectionize';
import tailwind from '@astrojs/tailwind';
import react from '@astrojs/react';
import icon from 'astro-icon';
import expressiveCode, {
type AstroExpressiveCodeOptions,
} from 'astro-expressive-code';
import vercel from '@astrojs/vercel/serverless';
const astroExpressiveCodeOptions: AstroExpressiveCodeOptions = {
themes: ['github-dark-default'],
themeCssSelector: (theme) => `.${theme.type}`,
useThemedSelectionColors: true,
styleOverrides: {
textMarkers: {
markBackground: 'hsla(220, 25.00%, 30%, 0.25)',
markBorderColor: 'hsla(220, 30.00%, 60%, 1)',
},
frames: {
inlineButtonBorderOpacity: '0.0',
},
},
};
// https://astro.build/config
export default defineConfig({
markdown: {
remarkPlugins: [remarkSectionize],
},
prefetch: {
defaultStrategy: 'load',
prefetchAll: true,
},
integrations: [
tailwind({
applyBaseStyles: false,
}),
expressiveCode(astroExpressiveCodeOptions),
icon(),
react(),
],
output: 'hybrid',
adapter: vercel(),
});