-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathastro.config.mjs
36 lines (34 loc) · 1020 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
36
import vercel from '@astrojs/vercel/static';
import { defineConfig } from 'astro/config';
import tailwind from "@astrojs/tailwind";
import mdx from "@astrojs/mdx";
import alpinejs from "@astrojs/alpinejs";
import clickDirective from './directives/astro-click-directive/register.js'
import react from "@astrojs/react";
// https://astro.build/config
export default defineConfig({
markdown: {
shikiConfig: {
themes: {
light: 'night-owl',
dark: 'catppuccin-latte',
},
langs: ['apache', 'bash', 'css', 'html', 'javascript', 'js', 'json', 'jsx', 'markdown', 'php', 'ruby', 'scss', 'shell', 'typescript'],
wrap: false,
transformers: [],
},
},
server: {
port: 3000,
host: true
},
integrations: [tailwind(), mdx(), alpinejs(), react(), clickDirective()],
adapter: vercel({
imageService: true,
imagesConfig: {
domains: ['yago.io'],
sizes: [256, 384, 640, 750, 828, 1080, 1200, 1920, 2560],
formats: ['image/avif']
}
})
});